зеркало из https://github.com/microsoft/clang-1.git
Update the creation of the TargetAsmParser based on API change in r134678.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134680 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
b1077dcd9f
Коммит
4d6980bd07
|
@ -308,7 +308,9 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts, Diagnostic &Diags) {
|
|||
|
||||
OwningPtr<MCAsmParser> Parser(createMCAsmParser(*TheTarget, SrcMgr, Ctx,
|
||||
*Str.get(), *MAI));
|
||||
OwningPtr<TargetAsmParser> TAP(TheTarget->createAsmParser(*Parser, *TM));
|
||||
OwningPtr<TargetAsmParser> TAP(
|
||||
TheTarget->createAsmParser(TM->getTargetTriple(), TM->getTargetCPU(),
|
||||
TM->getTargetFeatureString(), *Parser));
|
||||
if (!TAP) {
|
||||
Diags.Report(diag::err_target_unknown_triple) << Opts.Triple;
|
||||
return false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче