diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-06-06 00:43:09 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-06-06 00:43:09 +0000 |
commit | 6a2e7ac0b6647a409394e58b385e579ea62b5cba (patch) | |
tree | d96f9d55cc9f4fcbae8b0c8c496493ee0e0f5343 /lib/Target/XCore | |
parent | f2d03d74ffe05d08ac7dccbb81f41d996a1f1d2a (diff) | |
download | external_llvm-6a2e7ac0b6647a409394e58b385e579ea62b5cba.zip external_llvm-6a2e7ac0b6647a409394e58b385e579ea62b5cba.tar.gz external_llvm-6a2e7ac0b6647a409394e58b385e579ea62b5cba.tar.bz2 |
Cache the TargetLowering info object as a pointer.
Caching it as a pointer allows us to reset it if the TargetMachine object
changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183361 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore')
-rw-r--r-- | lib/Target/XCore/XCoreISelDAGToDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/XCore/XCoreISelDAGToDAG.cpp b/lib/Target/XCore/XCoreISelDAGToDAG.cpp index 152e939..ee183aa 100644 --- a/lib/Target/XCore/XCoreISelDAGToDAG.cpp +++ b/lib/Target/XCore/XCoreISelDAGToDAG.cpp @@ -125,7 +125,7 @@ SDNode *XCoreDAGToDAGISel::Select(SDNode *N) { SDValue CPIdx = CurDAG->getTargetConstantPool(ConstantInt::get( Type::getInt32Ty(*CurDAG->getContext()), Val), - TLI.getPointerTy()); + TLI->getPointerTy()); SDNode *node = CurDAG->getMachineNode(XCore::LDWCP_lru6, dl, MVT::i32, MVT::Other, CPIdx, CurDAG->getEntryNode()); |