forked from OSchip/llvm-project
parent
9c3b4b1bc5
commit
78fe44ed52
|
@ -254,10 +254,10 @@ bool X86TargetMachine::addSimpleCodeEmitter(PassManagerBase &PM, bool Fast,
|
|||
return false;
|
||||
}
|
||||
|
||||
// symbolicAddressesAreRIPRel - Return true if symbolic addresses are
|
||||
// RIP-relative on this machine, taking into consideration the relocation
|
||||
// model and subtarget. RIP-relative addresses cannot have a separate
|
||||
// base or index register.
|
||||
/// symbolicAddressesAreRIPRel - Return true if symbolic addresses are
|
||||
/// RIP-relative on this machine, taking into consideration the relocation
|
||||
/// model and subtarget. RIP-relative addresses cannot have a separate
|
||||
/// base or index register.
|
||||
bool X86TargetMachine::symbolicAddressesAreRIPRel() const {
|
||||
return getRelocationModel() != Reloc::Static &&
|
||||
Subtarget.isPICStyleRIPRel();
|
||||
|
|
Loading…
Reference in New Issue