make PIC vs DynamicNoPIC be explicit in PICStyles.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75275 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2009-07-10 20:58:47 +00:00
parent 84853a17a3
commit 8097b65c43
3 changed files with 21 additions and 21 deletions

View File

@@ -34,18 +34,6 @@ AsmWriterFlavor("x86-asm-syntax", cl::init(X86Subtarget::Unset),
clEnumValN(X86Subtarget::Intel, "intel", "Emit Intel-style assembly"),
clEnumValEnd));
bool X86Subtarget::isPICStyleStubPIC(const TargetMachine &TM) const {
return PICStyle == PICStyles::Stub &&
TM.getRelocationModel() == Reloc::PIC_;
}
bool X86Subtarget::isPICStyleStubNoDynamic(const TargetMachine &TM) const {
return PICStyle == PICStyles::Stub &&
TM.getRelocationModel() == Reloc::DynamicNoPIC;
}
/// ClassifyGlobalReference - Classify a global variable reference for the
/// current subtarget according to how we should reference it in a non-pcrel
/// context.