summaryrefslogtreecommitdiffstats
path: root/lld/lib
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-11-05 23:22:41 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-11-05 23:22:41 +0000
commit31fb9edc00e31efc65f8a904ca58841d67f6759a (patch)
tree1f1827a79e66ca19d3ab51c8855ef3953233dfb7 /lld/lib
parented8bca4f42435e2e0ac8ee63b273476a7183f696 (diff)
downloadbcm5719-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.cpp2
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 *>(&section.content[offset]);
size = read32(&section.content[offset], isBig) + 4;
if (offset+size > section.content.size()) {
return make_dynamic_error_code(Twine(Twine("Section ")
OpenPOWER on IntegriCloud