change CBE to just get TAI now, instead of TM to get TAI.
authorChris Lattner <sabre@nondot.org>
Wed, 12 Aug 2009 16:41:44 +0000 (16:41 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 12 Aug 2009 16:41:44 +0000 (16:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78813 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CBackend/CBackend.cpp

index fffa2cbfe4345fd0be5266394d1c6f13b86b5e33..937a93f18a1c61ea2e96b3bd749b4fb4d74fc64a 100644 (file)
@@ -3233,13 +3233,8 @@ std::string CWriter::InterpretASMConstraint(InlineAsm::ConstraintInfo& c) {
       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();