diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2014-11-05 23:22:41 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2014-11-05 23:22:41 +0000 |
| commit | 31fb9edc00e31efc65f8a904ca58841d67f6759a (patch) | |
| tree | 1f1827a79e66ca19d3ab51c8855ef3953233dfb7 /lld/lib | |
| parent | ed8bca4f42435e2e0ac8ee63b273476a7183f696 (diff) | |
| download | bcm5719-llvm-31fb9edc00e31efc65f8a904ca58841d67f6759a.tar.gz bcm5719-llvm-31fb9edc00e31efc65f8a904ca58841d67f6759a.zip | |
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
Diffstat (limited to 'lld/lib')
| -rw-r--r-- | lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp b/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp index 4a467145499..54899b00a0f 100644 --- a/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp +++ b/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp @@ -388,7 +388,6 @@ std::error_code processSection(DefinedAtom::ContentType atomType, return processSymboledSection(atomType, section, normalizedFile, file, scatterable, copyRefs); } else { - const uint32_t *cfi; unsigned int size; for (unsigned int offset = 0, e = section.content.size(); offset != e;) { switch (atomizeModel) { @@ -422,7 +421,6 @@ std::error_code processSection(DefinedAtom::ContentType atomType, break; case atomizeCFI: // 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; if (offset+size > section.content.size()) { return make_dynamic_error_code(Twine(Twine("Section ") |

