[lld] r201109 - Update for llvm api change.
Rafael Espindola
rafael.espindola at gmail.com
Mon Feb 10 12:24:27 PST 2014
Author: rafael
Date: Mon Feb 10 14:24:27 2014
New Revision: 201109
URL: http://llvm.org/viewvc/llvm-project?rev=201109&view=rev
Log:
Update for llvm api change.
Modified:
lld/trunk/lib/ReaderWriter/FileArchive.cpp
lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
Modified: lld/trunk/lib/ReaderWriter/FileArchive.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/FileArchive.cpp?rev=201109&r1=201108&r2=201109&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/FileArchive.cpp (original)
+++ lld/trunk/lib/ReaderWriter/FileArchive.cpp Mon Feb 10 14:24:27 2014
@@ -119,8 +119,8 @@ protected:
std::unique_ptr<ObjectFile> obj(objOrErr.get());
SymbolRef::Type symtype;
uint32_t symflags;
- symbol_iterator ibegin = obj->begin_symbols();
- symbol_iterator iend = obj->end_symbols();
+ symbol_iterator ibegin = obj->symbol_begin();
+ symbol_iterator iend = obj->symbol_end();
StringRef symbolname;
for (symbol_iterator i = ibegin; i != iend; ++i) {
Modified: lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp?rev=201109&r1=201108&r2=201109&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp Mon Feb 10 14:24:27 2014
@@ -527,7 +527,7 @@ error_code FileCOFF::cacheSectionAttribu
// The sections that does not have auxiliary symbol are regular sections, in
// which symbols are not allowed to be merged.
- for (auto si = _obj->begin_sections(), se = _obj->end_sections(); si != se;
+ for (auto si = _obj->section_begin(), se = _obj->section_end(); si != se;
++si) {
const coff_section *sec = _obj->getCOFFSection(si);
if (!_merge.count(sec))
@@ -744,7 +744,7 @@ error_code FileCOFF::getReferenceArch(Re
/// Add relocation information to atoms.
error_code FileCOFF::addRelocationReferenceToAtoms() {
// Relocation entries are defined for each section.
- for (auto si = _obj->begin_sections(), se = _obj->end_sections(); si != se;
+ for (auto si = _obj->section_begin(), se = _obj->section_end(); si != se;
++si) {
const coff_section *section = _obj->getCOFFSection(si);
@@ -754,7 +754,7 @@ error_code FileCOFF::addRelocationRefere
if (_sectionAtoms.find(section) == _sectionAtoms.end())
continue;
- for (auto ri = si->begin_relocations(), re = si->end_relocations();
+ for (auto ri = si->relocation_begin(), re = si->relocation_end();
ri != re; ++ri) {
const coff_relocation *rel = _obj->getCOFFRelocation(ri);
if (auto ec =
@@ -767,7 +767,7 @@ error_code FileCOFF::addRelocationRefere
/// Find a section by name.
error_code FileCOFF::findSection(StringRef name, const coff_section *&result) {
- for (auto si = _obj->begin_sections(), se = _obj->end_sections(); si != se;
+ for (auto si = _obj->section_begin(), se = _obj->section_end(); si != se;
++si) {
const coff_section *section = _obj->getCOFFSection(si);
StringRef sectionName;
More information about the llvm-commits
mailing list