[lld] r221412 - MachO: Remove an unused variable from processSection

David Majnemer david.majnemer at gmail.com
Wed Nov 5 15:22:41 PST 2014


Author: majnemer
Date: Wed Nov  5 17:22:41 2014
New Revision: 221412

URL: http://llvm.org/viewvc/llvm-project?rev=221412&view=rev
Log:
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.

Modified:
    lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp

Modified: lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp?rev=221412&r1=221411&r2=221412&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp (original)
+++ lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp Wed Nov  5 17:22:41 2014
@@ -388,7 +388,6 @@ std::error_code processSection(DefinedAt
     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(DefinedAt
         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 ")





More information about the llvm-commits mailing list