[llvm-commits] [llvm] r78813 - /llvm/trunk/lib/Target/CBackend/CBackend.cpp
Chris Lattner
sabre at nondot.org
Wed Aug 12 09:41:44 PDT 2009
Author: lattner
Date: Wed Aug 12 11:41:44 2009
New Revision: 78813
URL: http://llvm.org/viewvc/llvm-project?rev=78813&view=rev
Log:
change CBE to just get TAI now, instead of TM to get TAI.
Modified:
llvm/trunk/lib/Target/CBackend/CBackend.cpp
Modified: llvm/trunk/lib/Target/CBackend/CBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CBackend/CBackend.cpp?rev=78813&r1=78812&r2=78813&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CBackend/CBackend.cpp (original)
+++ llvm/trunk/lib/Target/CBackend/CBackend.cpp Wed Aug 12 11:41:44 2009
@@ -3233,13 +3233,8 @@
Triple = llvm::sys::getHostTriple();
std::string E;
- const Target *Match = TargetRegistry::lookupTarget(Triple, E);
- if (Match) {
- // Per platform Target Machines don't exist, so create it;
- // this must be done only once.
- const TargetMachine* TM = Match->createTargetMachine(Triple, "");
- TAsm = TM->getTargetAsmInfo();
- }
+ if (const Target *Match = TargetRegistry::lookupTarget(Triple, E))
+ TAsm = Match->createAsmInfo(Triple);
}
if (TAsm)
table = TAsm->getAsmCBE();
More information about the llvm-commits
mailing list