forked from OSchip/llvm-project
MachO: Remove an unused variable from processSection
The local variable `cfi` became dead in r220730 when it's use was obviated; it was replaced with a call to read32. No functionality change intended. llvm-svn: 221412
This commit is contained in:
parent
ed8bca4f42
commit
31fb9edc00
|
@ -388,7 +388,6 @@ std::error_code processSection(DefinedAtom::ContentType atomType,
|
||||||
return processSymboledSection(atomType, section, normalizedFile, file,
|
return processSymboledSection(atomType, section, normalizedFile, file,
|
||||||
scatterable, copyRefs);
|
scatterable, copyRefs);
|
||||||
} else {
|
} else {
|
||||||
const uint32_t *cfi;
|
|
||||||
unsigned int size;
|
unsigned int size;
|
||||||
for (unsigned int offset = 0, e = section.content.size(); offset != e;) {
|
for (unsigned int offset = 0, e = section.content.size(); offset != e;) {
|
||||||
switch (atomizeModel) {
|
switch (atomizeModel) {
|
||||||
|
@ -422,7 +421,6 @@ std::error_code processSection(DefinedAtom::ContentType atomType,
|
||||||
break;
|
break;
|
||||||
case atomizeCFI:
|
case atomizeCFI:
|
||||||
// Break section up into dwarf unwind CFIs (FDE or CIE).
|
// Break section up into dwarf unwind CFIs (FDE or CIE).
|
||||||
cfi = reinterpret_cast<const uint32_t *>(§ion.content[offset]);
|
|
||||||
size = read32(§ion.content[offset], isBig) + 4;
|
size = read32(§ion.content[offset], isBig) + 4;
|
||||||
if (offset+size > section.content.size()) {
|
if (offset+size > section.content.size()) {
|
||||||
return make_dynamic_error_code(Twine(Twine("Section ")
|
return make_dynamic_error_code(Twine(Twine("Section ")
|
||||||
|
|
Loading…
Reference in New Issue