[lld] r204353 - [Mips] Remove the dead code.
Simon Atanasyan
simon at atanasyan.com
Thu Mar 20 09:26:07 PDT 2014
Author: atanasyan
Date: Thu Mar 20 11:26:07 2014
New Revision: 204353
URL: http://llvm.org/viewvc/llvm-project?rev=204353&view=rev
Log:
[Mips] Remove the dead code.
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=204353&r1=204352&r2=204353&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp Thu Mar 20 11:26:07 2014
@@ -252,10 +252,6 @@ void RelocationPass::calculateAHLs(const
break;
}
}
- if (!references.empty()) {
- for (auto &sr : references)
- sr->setAddend(0);
- }
assert(references.empty());
}
More information about the llvm-commits
mailing list