diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2011-12-02 22:16:29 +0000 | 
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2011-12-02 22:16:29 +0000 | 
| commit | 50f02cb21b62b6ac010d11601eff899e48777f87 (patch) | |
| tree | 70ffe3f7f1ce17f244f7a2f3db2a7befbec53ba9 /llvm/lib/Target/X86/X86FastISel.cpp | |
| parent | 7276397f41c1f8867cdbebf6a6b062809989faee (diff) | |
| download | bcm5719-llvm-50f02cb21b62b6ac010d11601eff899e48777f87.tar.gz bcm5719-llvm-50f02cb21b62b6ac010d11601eff899e48777f87.zip | |
Move global variables in TargetMachine into new TargetOptions class. As an API
change, now you need a TargetOptions object to create a TargetMachine. Clang
patch to follow.
One small functionality change in PTX. PTX had commented out the machine
verifier parts in their copy of printAndVerify. That now calls the version in
LLVMTargetMachine. Users of PTX who need verification disabled should rely on
not passing the command-line flag to enable it.
llvm-svn: 145714
Diffstat (limited to 'llvm/lib/Target/X86/X86FastISel.cpp')
| -rw-r--r-- | llvm/lib/Target/X86/X86FastISel.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp index 00c5903b47b..15894390cfa 100644 --- a/llvm/lib/Target/X86/X86FastISel.cpp +++ b/llvm/lib/Target/X86/X86FastISel.cpp @@ -728,7 +728,7 @@ bool X86FastISel::X86SelectRet(const Instruction *I) {    // fastcc with -tailcallopt is intended to provide a guaranteed    // tail call optimization. Fastisel doesn't know how to do that. -  if (CC == CallingConv::Fast && GuaranteedTailCallOpt) +  if (CC == CallingConv::Fast && TM.Options.GuaranteedTailCallOpt)      return false;    // Let SDISel handle vararg functions. @@ -1529,7 +1529,7 @@ bool X86FastISel::DoSelectCall(const Instruction *I, const char *MemIntName) {    // fastcc with -tailcallopt is intended to provide a guaranteed    // tail call optimization. Fastisel doesn't know how to do that. -  if (CC == CallingConv::Fast && GuaranteedTailCallOpt) +  if (CC == CallingConv::Fast && TM.Options.GuaranteedTailCallOpt)      return false;    PointerType *PT = cast<PointerType>(CS.getCalledValue()->getType()); @@ -1543,7 +1543,7 @@ bool X86FastISel::DoSelectCall(const Instruction *I, const char *MemIntName) {    // Fast-isel doesn't know about callee-pop yet.    if (X86::isCalleePop(CC, Subtarget->is64Bit(), isVarArg, -                       GuaranteedTailCallOpt)) +                       TM.Options.GuaranteedTailCallOpt))      return false;    // Check whether the function can return without sret-demotion. | 

