diff options
author | Jason W Kim <jason.w.kim.2009@gmail.com> | 2011-06-09 19:13:45 +0000 |
---|---|---|
committer | Jason W Kim <jason.w.kim.2009@gmail.com> | 2011-06-09 19:13:45 +0000 |
commit | bebd44a95a94189e79b02cd15edc2d41bc2628fe (patch) | |
tree | 80c34ca4f5ea853099e3789bdb9c26bf2323413e /lib/MC/ELFObjectWriter.cpp | |
parent | aebc3c1610f7ee563120ba5db7ae064d77af56c4 (diff) |
Remove an uneeded switch - Turns out reloc results are identical w/o the switch. (face+palm)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132790 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/ELFObjectWriter.cpp')
-rw-r--r-- | lib/MC/ELFObjectWriter.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/MC/ELFObjectWriter.cpp b/lib/MC/ELFObjectWriter.cpp index 2369d58b14..59e1b8eb81 100644 --- a/lib/MC/ELFObjectWriter.cpp +++ b/lib/MC/ELFObjectWriter.cpp @@ -37,17 +37,6 @@ using namespace llvm; #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 @@ const MCSymbol *ARMELFObjectWriter::ExplicitRelSym(const MCAssembler &Asm, << 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 |