summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-02-10 20:24:27 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-02-10 20:24:27 +0000
commit20d93679c75d35d37e3b8a819e8777c6e5c154e7 (patch)
tree1b3db450e140c5d9cdeecdd1f9837fc0a5215acd
parentb5155a572fd972d249ea365226c10a5d8e5f921d (diff)
downloadbcm5719-llvm-20d93679c75d35d37e3b8a819e8777c6e5c154e7.tar.gz
bcm5719-llvm-20d93679c75d35d37e3b8a819e8777c6e5c154e7.zip
Update for llvm api change.
llvm-svn: 201109
-rw-r--r--lld/lib/ReaderWriter/FileArchive.cpp4
-rw-r--r--lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/lld/lib/ReaderWriter/FileArchive.cpp b/lld/lib/ReaderWriter/FileArchive.cpp
index 900d2e75606..95ed6517189 100644
--- a/lld/lib/ReaderWriter/FileArchive.cpp
+++ b/lld/lib/ReaderWriter/FileArchive.cpp
@@ -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) {
diff --git a/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp b/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
index c437ac5ac31..59b66bb7c2a 100644
--- a/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
+++ b/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
@@ -527,7 +527,7 @@ error_code FileCOFF::cacheSectionAttributes() {
// 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(Reference::KindArch &result) {
/// 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::addRelocationReferenceToAtoms() {
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::addRelocationReferenceToAtoms() {
/// 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;
OpenPOWER on IntegriCloud