[lld] r204472 - [Mips] Fix source code formatting. No functional changes.
Simon Atanasyan
simon at atanasyan.com
Fri Mar 21 08:29:07 PDT 2014
Author: atanasyan
Date: Fri Mar 21 10:29:07 2014
New Revision: 204472
URL: http://llvm.org/viewvc/llvm-project?rev=204472&view=rev
Log:
[Mips] Fix source code formatting. No functional changes.
Modified:
lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp
Modified: lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp?rev=204472&r1=204471&r2=204472&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp Fri Mar 21 10:29:07 2014
@@ -237,18 +237,18 @@ void RelocationPass::calculateAHLs(const
continue;
assert(ref->kindArch() == Reference::KindArch::Mips);
switch (ref->kindValue()) {
- case R_MIPS_HI16:
+ case R_MIPS_HI16:
+ references.push_back(const_cast<Reference *>(ref));
+ break;
+ case R_MIPS_GOT16:
+ if (isLocal(ref->target()))
references.push_back(const_cast<Reference *>(ref));
- break;
- case R_MIPS_GOT16:
- if (isLocal(ref->target()))
- references.push_back(const_cast<Reference *>(ref));
- break;
- case R_MIPS_LO16:
- for (auto &sr : references)
- sr->setAddend(calcAHL(sr->addend(), ref->addend()));
- references.clear();
- break;
+ break;
+ case R_MIPS_LO16:
+ for (auto &sr : references)
+ sr->setAddend(calcAHL(sr->addend(), ref->addend()));
+ references.clear();
+ break;
}
}
assert(references.empty());
More information about the llvm-commits
mailing list