diff options
| author | Dan Gohman <gohman@apple.com> | 2010-07-06 22:19:37 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-07-06 22:19:37 +0000 |
| commit | ee0cb70381d73bdee1fbfc1ff157c99f39abc859 (patch) | |
| tree | 2b32a3f5467ea53e89734548f872a3b4fac95ad4 /llvm/lib/Target/XCore | |
| parent | a3ca21b22892f62359c944d27315c60b06a0df59 (diff) | |
| download | bcm5719-llvm-ee0cb70381d73bdee1fbfc1ff157c99f39abc859.tar.gz bcm5719-llvm-ee0cb70381d73bdee1fbfc1ff157c99f39abc859.zip | |
CanLowerReturn doesn't need a SelectionDAG; it just needs an LLVMContext.
SelectBasicBlock doesn't needs its BasicBlock argument.
llvm-svn: 107712
Diffstat (limited to 'llvm/lib/Target/XCore')
| -rw-r--r-- | llvm/lib/Target/XCore/XCoreISelLowering.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/XCore/XCoreISelLowering.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/XCore/XCoreISelLowering.cpp b/llvm/lib/Target/XCore/XCoreISelLowering.cpp index 8cd0a0bf539..d8ffacf492d 100644 --- a/llvm/lib/Target/XCore/XCoreISelLowering.cpp +++ b/llvm/lib/Target/XCore/XCoreISelLowering.cpp @@ -1135,10 +1135,10 @@ bool XCoreTargetLowering:: CanLowerReturn(CallingConv::ID CallConv, bool isVarArg, const SmallVectorImpl<EVT> &OutTys, const SmallVectorImpl<ISD::ArgFlagsTy> &ArgsFlags, - SelectionDAG &DAG) const { + LLVMContext &Context) const { SmallVector<CCValAssign, 16> RVLocs; CCState CCInfo(CallConv, isVarArg, getTargetMachine(), - RVLocs, *DAG.getContext()); + RVLocs, Context); return CCInfo.CheckReturn(OutTys, ArgsFlags, RetCC_XCore); } diff --git a/llvm/lib/Target/XCore/XCoreISelLowering.h b/llvm/lib/Target/XCore/XCoreISelLowering.h index d8d2a3aa731..739a7fb34aa 100644 --- a/llvm/lib/Target/XCore/XCoreISelLowering.h +++ b/llvm/lib/Target/XCore/XCoreISelLowering.h @@ -192,7 +192,7 @@ namespace llvm { CanLowerReturn(CallingConv::ID CallConv, bool isVarArg, const SmallVectorImpl<EVT> &OutTys, const SmallVectorImpl<ISD::ArgFlagsTy> &ArgsFlags, - SelectionDAG &DAG) const; + LLVMContext &Context) const; }; } |

