[lld] r303164 - [ELF] - Update for LLVM's r303163 change. NFCi.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Tue May 16 05:34:51 PDT 2017


Author: grimar
Date: Tue May 16 07:34:51 2017
New Revision: 303164

URL: http://llvm.org/viewvc/llvm-project?rev=303164&view=rev
Log:
[ELF] - Update for LLVM's r303163 change. NFCi.

Modified:
    lld/trunk/ELF/SyntheticSections.cpp

Modified: lld/trunk/ELF/SyntheticSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.cpp?rev=303164&r1=303163&r2=303164&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.cpp (original)
+++ lld/trunk/ELF/SyntheticSections.cpp Tue May 16 07:34:51 2017
@@ -1717,10 +1717,10 @@ readAddressArea(DWARFContext &Dwarf, Inp
     CU->collectAddressRanges(Ranges);
 
     ArrayRef<InputSectionBase *> Sections = Sec->File->getSections();
-    for (std::pair<uint64_t, uint64_t> &R : Ranges)
-      if (InputSection *S = findSection(Sections, R.first))
-        Ret.push_back({S, R.first - S->getOffsetInFile(),
-                       R.second - S->getOffsetInFile(), CurrentCU});
+    for (DWARFAddressRange &R : Ranges)
+      if (InputSection *S = findSection(Sections, R.LowPC))
+        Ret.push_back({S, R.LowPC - S->getOffsetInFile(),
+                       R.HighPC - S->getOffsetInFile(), CurrentCU});
     ++CurrentCU;
   }
   return Ret;




More information about the llvm-commits mailing list