change CBE to just get TAI now, instead of TM to get TAI.

llvm-svn: 78813
This commit is contained in:
Chris Lattner 2009-08-12 16:41:44 +00:00
parent 4ac2f639cd
commit 957d0587b6
1 changed files with 2 additions and 7 deletions

View 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();