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 | 7fbe7914af64fb40fedf044e46539f71d3b1b0b2 (patch) | |
tree | a4d260443e2822fb3407a669eb70f0db51c8776b | |
parent | c095116710d06f632205c726fa15dbbe8f17e06c (diff) | |
download | bcm5719-llvm-7fbe7914af64fb40fedf044e46539f71d3b1b0b2.tar.gz bcm5719-llvm-7fbe7914af64fb40fedf044e46539f71d3b1b0b2.zip |
Remove an uneeded switch - Turns out reloc results are identical w/o the switch. (face+palm)
llvm-svn: 132790
-rw-r--r-- | llvm/lib/MC/ELFObjectWriter.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/llvm/lib/MC/ELFObjectWriter.cpp b/llvm/lib/MC/ELFObjectWriter.cpp index 2369d58b140..59e1b8eb810 100644 --- a/llvm/lib/MC/ELFObjectWriter.cpp +++ b/llvm/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 |