diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-12 16:41:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-12 16:41:44 +0000 |
commit | bfbc1de72f7f06d1109735feba485bf8f09239ac (patch) | |
tree | d1ade58c52fd57340c24c0ea92f55eaaf0df9eda /lib/Target/CBackend/CBackend.cpp | |
parent | 9ca9daad2175cd57776e7de7fb6f78eb96fc7445 (diff) |
change CBE to just get TAI now, instead of TM to get TAI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78813 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index fffa2cbfe4..937a93f18a 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -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(); |