forked from OSchip/llvm-project
IA64 is as weird as Alpha wrt r/o relocs :)
llvm-svn: 68007
This commit is contained in:
parent
014a86f216
commit
bea241a5f5
|
@ -12,6 +12,8 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "IA64TargetAsmInfo.h"
|
||||
#include "llvm/Constants.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
|
@ -34,4 +36,9 @@ IA64TargetAsmInfo::IA64TargetAsmInfo(const TargetMachine &TM):
|
|||
ConstantPoolSection = "\n\t.section .data, \"aw\", \"progbits\"\n";
|
||||
}
|
||||
|
||||
unsigned IA64TargetAsmInfo::RelocBehaviour() const {
|
||||
return (TM.getRelocationModel() != Reloc::Static ?
|
||||
Reloc::LocalOrGlobal : Reloc::Global);
|
||||
}
|
||||
|
||||
// FIXME: Support small data/bss/rodata sections someday.
|
||||
|
|
|
@ -24,6 +24,7 @@ namespace llvm {
|
|||
|
||||
struct IA64TargetAsmInfo : public ELFTargetAsmInfo {
|
||||
explicit IA64TargetAsmInfo(const TargetMachine &TM);
|
||||
virtual unsigned RelocBehaviour() const;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue