Update for llvm change.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 30 Jun 2015 15:34:00 +0000 (15:34 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 30 Jun 2015 15:34:00 +0000 (15:34 +0000)
llvm-svn: 241075

lld/lib/ReaderWriter/ELF/DynamicFile.cpp
lld/lib/ReaderWriter/ELF/ELFFile.cpp

index 8a029f2..5719037 100644 (file)
@@ -68,7 +68,7 @@ template <class ELFT> std::error_code DynamicFile<ELFT>::doParse() {
   // Create a map from names to dynamic symbol table entries.
   // TODO: This should use the object file's build in hash table instead if
   // it exists.
-  for (auto i = obj.begin_dynamic_symbols(), e = obj.end_dynamic_symbols();
+  for (auto i = obj.dynamic_symbol_begin(), e = obj.dynamic_symbol_end();
        i != e; ++i) {
     auto name = obj.getSymbolName(i, true);
     if ((ec = name.getError()))
index 98129a8..7b27a7a 100644 (file)
@@ -140,8 +140,8 @@ std::error_code ELFFile<ELFT>::createAtomizableSections() {
       if (std::error_code ec = sectionName.getError())
         return ec;
 
-      auto rai(_objFile->begin_rela(&section));
-      auto rae(_objFile->end_rela(&section));
+      auto rai(_objFile->rela_begin(&section));
+      auto rae(_objFile->rela_end(&section));
 
       _relocationAddendReferences[sHdr] = make_range(rai, rae);
       totalRelocs += std::distance(rai, rae);
@@ -152,8 +152,8 @@ std::error_code ELFFile<ELFT>::createAtomizableSections() {
       if (std::error_code ec = sectionName.getError())
         return ec;
 
-      auto ri(_objFile->begin_rel(&section));
-      auto re(_objFile->end_rel(&section));
+      auto ri(_objFile->rel_begin(&section));
+      auto re(_objFile->rel_end(&section));
 
       _relocationReferences[sHdr] = make_range(ri, re);
       totalRelocs += std::distance(ri, re);
@@ -210,7 +210,7 @@ template <class ELFT>
 std::error_code ELFFile<ELFT>::createSymbolsFromAtomizableSections() {
   // Increment over all the symbols collecting atoms and symbol names for
   // later use.
-  auto SymI = _objFile->begin_symbols(), SymE = _objFile->end_symbols();
+  auto SymI = _objFile->symbol_begin(), SymE = _objFile->symbol_end();
 
   // Skip over dummy sym.
   if (SymI != SymE)