Update for LLVM API change.

llvm-svn: 108665
This commit is contained in:
Daniel Dunbar 2010-07-19 00:33:53 +00:00
parent 419197cc4d
commit deaff5d792
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts, Diagnostic &Diags) {
OwningPtr<MCAsmParser> Parser(createMCAsmParser(*TheTarget, SrcMgr, Ctx, OwningPtr<MCAsmParser> Parser(createMCAsmParser(*TheTarget, SrcMgr, Ctx,
*Str.get(), *MAI)); *Str.get(), *MAI));
OwningPtr<TargetAsmParser> TAP(TheTarget->createAsmParser(*Parser)); OwningPtr<TargetAsmParser> TAP(TheTarget->createAsmParser(*Parser, *TM));
if (!TAP) { if (!TAP) {
Diags.Report(diag::err_target_unknown_triple) << Opts.Triple; Diags.Report(diag::err_target_unknown_triple) << Opts.Triple;
return false; return false;