зеркало из https://github.com/microsoft/clang-1.git
createAsmParser API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134797 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
7566aa2e47
Коммит
bb36ed954a
|
@ -30,6 +30,7 @@
|
|||
#include "llvm/MC/MCCodeEmitter.h"
|
||||
#include "llvm/MC/MCContext.h"
|
||||
#include "llvm/MC/MCStreamer.h"
|
||||
#include "llvm/MC/MCSubtargetInfo.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/FormattedStream.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
|
@ -308,9 +309,11 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts, Diagnostic &Diags) {
|
|||
|
||||
OwningPtr<MCAsmParser> Parser(createMCAsmParser(*TheTarget, SrcMgr, Ctx,
|
||||
*Str.get(), *MAI));
|
||||
OwningPtr<TargetAsmParser> TAP(
|
||||
TheTarget->createAsmParser(TM->getTargetTriple(), TM->getTargetCPU(),
|
||||
TM->getTargetFeatureString(), *Parser));
|
||||
OwningPtr<MCSubtargetInfo>
|
||||
STI(TheTarget->createMCSubtargetInfo(TM->getTargetTriple(),
|
||||
TM->getTargetCPU(),
|
||||
TM->getTargetFeatureString()));
|
||||
OwningPtr<TargetAsmParser> TAP(TheTarget->createAsmParser(*STI, *Parser));
|
||||
if (!TAP) {
|
||||
Diags.Report(diag::err_target_unknown_triple) << Opts.Triple;
|
||||
return false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче