mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
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
This commit is contained in:
parent
aebc3c1610
commit
bebd44a95a
@ -37,17 +37,6 @@ using namespace llvm;
|
|||||||
#undef DEBUG_TYPE
|
#undef DEBUG_TYPE
|
||||||
#define DEBUG_TYPE "reloc-info"
|
#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) {
|
bool ELFObjectWriter::isFixupKindPCRel(const MCAssembler &Asm, unsigned Kind) {
|
||||||
const MCFixupKindInfo &FKI =
|
const MCFixupKindInfo &FKI =
|
||||||
Asm.getBackend().getFixupKindInfo((MCFixupKind) Kind);
|
Asm.getBackend().getFixupKindInfo((MCFixupKind) Kind);
|
||||||
@ -1321,7 +1310,7 @@ const MCSymbol *ARMELFObjectWriter::ExplicitRelSym(const MCAssembler &Asm,
|
|||||||
<< Symbol.isVariable() << "/" << Symbol.isTemporary()
|
<< Symbol.isVariable() << "/" << Symbol.isTemporary()
|
||||||
<< " Counts:" << PCRelCount << "/" << NonPCRelCount << "\n");
|
<< " Counts:" << PCRelCount << "/" << NonPCRelCount << "\n");
|
||||||
|
|
||||||
if (IsPCRel || ForceARMElfPIC) { ++PCRelCount;
|
if (IsPCRel) { ++PCRelCount;
|
||||||
switch (RelocType) {
|
switch (RelocType) {
|
||||||
default:
|
default:
|
||||||
// Most relocation types are emitted as explicit symbols
|
// Most relocation types are emitted as explicit symbols
|
||||||
|
Loading…
x
Reference in New Issue
Block a user