зеркало из https://github.com/microsoft/clang-1.git
Match llvm API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135220 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
05bcade018
Коммит
e27eb59cb3
|
@ -126,6 +126,7 @@ int cc1_main(const char **ArgBegin, const char **ArgEnd,
|
|||
|
||||
// Initialize targets first, so that --version shows registered targets.
|
||||
llvm::InitializeAllTargets();
|
||||
llvm::InitializeAllMCAsmInfos();
|
||||
llvm::InitializeAllMCSubtargetInfos();
|
||||
llvm::InitializeAllAsmPrinters();
|
||||
llvm::InitializeAllAsmParsers();
|
||||
|
|
|
@ -256,7 +256,7 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts, Diagnostic &Diags) {
|
|||
// it later.
|
||||
SrcMgr.setIncludeDirs(Opts.IncludePaths);
|
||||
|
||||
OwningPtr<MCAsmInfo> MAI(TheTarget->createAsmInfo(Opts.Triple));
|
||||
OwningPtr<MCAsmInfo> MAI(TheTarget->createMCAsmInfo(Opts.Triple));
|
||||
assert(MAI && "Unable to create target asm info!");
|
||||
|
||||
bool IsBinary = Opts.OutputType == AssemblerInvocation::FT_Obj;
|
||||
|
@ -356,6 +356,7 @@ int cc1as_main(const char **ArgBegin, const char **ArgEnd,
|
|||
InitializeAllTargetInfos();
|
||||
// FIXME: We shouldn't need to initialize the Target(Machine)s.
|
||||
InitializeAllTargets();
|
||||
InitializeAllMCAsmInfos();
|
||||
InitializeAllMCInstrInfos();
|
||||
InitializeAllMCSubtargetInfos();
|
||||
InitializeAllAsmPrinters();
|
||||
|
|
Загрузка…
Ссылка в новой задаче