|
@@ -1058,8 +1058,7 @@ bool ASTUnit::Parse(std::shared_ptr<PCHContainerOperations> PCHContainerOps,
|
|
|
|
|
|
// Create the target instance.
|
|
|
Clang->setTarget(TargetInfo::CreateTargetInfo(
|
|
|
- Clang->getDiagnostics(), Clang->getInvocation().TargetOpts,
|
|
|
- Clang->getInvocation().getCodeGenOpts()));
|
|
|
+ Clang->getDiagnostics(), Clang->getInvocation().TargetOpts));
|
|
|
if (!Clang->hasTarget())
|
|
|
return true;
|
|
|
|
|
@@ -1519,8 +1518,7 @@ ASTUnit::getMainBufferWithPrecompiledPreamble(
|
|
|
|
|
|
// Create the target instance.
|
|
|
Clang->setTarget(TargetInfo::CreateTargetInfo(
|
|
|
- Clang->getDiagnostics(), Clang->getInvocation().TargetOpts,
|
|
|
- Clang->getInvocation().getCodeGenOpts()));
|
|
|
+ Clang->getDiagnostics(), Clang->getInvocation().TargetOpts));
|
|
|
if (!Clang->hasTarget()) {
|
|
|
llvm::sys::fs::remove(FrontendOpts.OutputFile);
|
|
|
Preamble.clear();
|
|
@@ -1783,8 +1781,7 @@ ASTUnit *ASTUnit::LoadFromCompilerInvocationAction(
|
|
|
|
|
|
// Create the target instance.
|
|
|
Clang->setTarget(TargetInfo::CreateTargetInfo(
|
|
|
- Clang->getDiagnostics(), Clang->getInvocation().TargetOpts,
|
|
|
- Clang->getInvocation().getCodeGenOpts()));
|
|
|
+ Clang->getDiagnostics(), Clang->getInvocation().TargetOpts));
|
|
|
if (!Clang->hasTarget())
|
|
|
return nullptr;
|
|
|
|
|
@@ -2367,8 +2364,7 @@ void ASTUnit::CodeComplete(
|
|
|
|
|
|
// Create the target instance.
|
|
|
Clang->setTarget(TargetInfo::CreateTargetInfo(
|
|
|
- Clang->getDiagnostics(), Clang->getInvocation().TargetOpts,
|
|
|
- Clang->getInvocation().getCodeGenOpts()));
|
|
|
+ Clang->getDiagnostics(), Clang->getInvocation().TargetOpts));
|
|
|
if (!Clang->hasTarget()) {
|
|
|
Clang->setInvocation(nullptr);
|
|
|
return;
|