mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Remove an uneeded switch - Turns out reloc results are identical w/o the switch. (face+palm)
llvm-svn: 132790
This commit is contained in:
parent
d04e75fca2
commit
a5b62f4fc7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user