[llvm-commits] [llvm] r132790 - /llvm/trunk/lib/MC/ELFObjectWriter.cpp
Jason W Kim
jason.w.kim.2009 at gmail.com
Thu Jun 9 12:13:45 PDT 2011
Author: jasonwkim
Date: Thu Jun 9 14:13:45 2011
New Revision: 132790
URL: http://llvm.org/viewvc/llvm-project?rev=132790&view=rev
Log:
Remove an uneeded switch - Turns out reloc results are identical w/o the switch. (face+palm)
Modified:
llvm/trunk/lib/MC/ELFObjectWriter.cpp
Modified: llvm/trunk/lib/MC/ELFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/ELFObjectWriter.cpp?rev=132790&r1=132789&r2=132790&view=diff
==============================================================================
--- llvm/trunk/lib/MC/ELFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/ELFObjectWriter.cpp Thu Jun 9 14:13:45 2011
@@ -37,17 +37,6 @@
#undef DEBUG_TYPE
#define DEBUG_TYPE "reloc-info"
-// FIXME: This switch must be removed. Since GNU as does not
-// need a command line switch for doing its wierd thing with PIC,
-// LLVM should not need it either.
-// --
-// Emulate the wierd behavior of GNU-as for relocation types
-namespace llvm {
-cl::opt<bool>
-ForceARMElfPIC("arm-elf-force-pic", cl::Hidden, cl::init(false),
- cl::desc("Force ELF emitter to emit PIC style relocations"));
-}
-
bool ELFObjectWriter::isFixupKindPCRel(const MCAssembler &Asm, unsigned Kind) {
const MCFixupKindInfo &FKI =
Asm.getBackend().getFixupKindInfo((MCFixupKind) Kind);
@@ -1321,7 +1310,7 @@
<< Symbol.isVariable() << "/" << Symbol.isTemporary()
<< " Counts:" << PCRelCount << "/" << NonPCRelCount << "\n");
- if (IsPCRel || ForceARMElfPIC) { ++PCRelCount;
+ if (IsPCRel) { ++PCRelCount;
switch (RelocType) {
default:
// Most relocation types are emitted as explicit symbols
More information about the llvm-commits
mailing list