diff options
| author | Simon Atanasyan <simon@atanasyan.com> | 2014-03-20 16:26:15 +0000 | 
|---|---|---|
| committer | Simon Atanasyan <simon@atanasyan.com> | 2014-03-20 16:26:15 +0000 | 
| commit | df0d62a7cba6517c23ec9aa51f023d124422a13d (patch) | |
| tree | 8a2c2789d43d309307720126f43c0ec7436d6bb0 | |
| parent | 7b571f4ee0ab3e6f4cc3229bbe96ac4b92849518 (diff) | |
| download | bcm5719-llvm-df0d62a7cba6517c23ec9aa51f023d124422a13d.tar.gz bcm5719-llvm-df0d62a7cba6517c23ec9aa51f023d124422a13d.zip  | |
[Mips] Join two for loops over defined atoms into the single one.
llvm-svn: 204354
| -rw-r--r-- | lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp b/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp index 518337de30c..ab969772b33 100644 --- a/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp +++ b/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp @@ -180,13 +180,12 @@ RelocationPass::RelocationPass(MipsLinkingContext &context)  }  void RelocationPass::perform(std::unique_ptr<MutableFile> &mf) { -  for (const auto &atom : mf->defined()) -    calculateAHLs(*atom); -    // Process all references. -  for (const auto &atom : mf->defined()) +  for (const auto &atom : mf->defined()) { +    calculateAHLs(*atom);      for (const auto &ref : *atom)        handleReference(*ref); +  }    uint64_t ordinal = 0;  | 

