|
@@ -559,7 +559,7 @@ private:
|
|
//
|
|
//
|
|
// FIXME: We shouldn't need to do this, the target should be immutable once
|
|
// FIXME: We shouldn't need to do this, the target should be immutable once
|
|
// created. This complexity should be lifted elsewhere.
|
|
// created. This complexity should be lifted elsewhere.
|
|
- Target->setForcedLangOptions(LangOpt);
|
|
|
|
|
|
+ Target->adjust(LangOpt);
|
|
|
|
|
|
// Initialize the preprocessor.
|
|
// Initialize the preprocessor.
|
|
PP.Initialize(*Target);
|
|
PP.Initialize(*Target);
|
|
@@ -1077,7 +1077,7 @@ bool ASTUnit::Parse(llvm::MemoryBuffer *OverrideMainBuffer) {
|
|
//
|
|
//
|
|
// FIXME: We shouldn't need to do this, the target should be immutable once
|
|
// FIXME: We shouldn't need to do this, the target should be immutable once
|
|
// created. This complexity should be lifted elsewhere.
|
|
// created. This complexity should be lifted elsewhere.
|
|
- Clang->getTarget().setForcedLangOptions(Clang->getLangOpts());
|
|
|
|
|
|
+ Clang->getTarget().adjust(Clang->getLangOpts());
|
|
|
|
|
|
assert(Clang->getFrontendOpts().Inputs.size() == 1 &&
|
|
assert(Clang->getFrontendOpts().Inputs.size() == 1 &&
|
|
"Invocation must have exactly one source file!");
|
|
"Invocation must have exactly one source file!");
|
|
@@ -1580,7 +1580,7 @@ llvm::MemoryBuffer *ASTUnit::getMainBufferWithPrecompiledPreamble(
|
|
//
|
|
//
|
|
// FIXME: We shouldn't need to do this, the target should be immutable once
|
|
// FIXME: We shouldn't need to do this, the target should be immutable once
|
|
// created. This complexity should be lifted elsewhere.
|
|
// created. This complexity should be lifted elsewhere.
|
|
- Clang->getTarget().setForcedLangOptions(Clang->getLangOpts());
|
|
|
|
|
|
+ Clang->getTarget().adjust(Clang->getLangOpts());
|
|
|
|
|
|
assert(Clang->getFrontendOpts().Inputs.size() == 1 &&
|
|
assert(Clang->getFrontendOpts().Inputs.size() == 1 &&
|
|
"Invocation must have exactly one source file!");
|
|
"Invocation must have exactly one source file!");
|
|
@@ -1841,7 +1841,7 @@ ASTUnit *ASTUnit::LoadFromCompilerInvocationAction(
|
|
//
|
|
//
|
|
// FIXME: We shouldn't need to do this, the target should be immutable once
|
|
// FIXME: We shouldn't need to do this, the target should be immutable once
|
|
// created. This complexity should be lifted elsewhere.
|
|
// created. This complexity should be lifted elsewhere.
|
|
- Clang->getTarget().setForcedLangOptions(Clang->getLangOpts());
|
|
|
|
|
|
+ Clang->getTarget().adjust(Clang->getLangOpts());
|
|
|
|
|
|
assert(Clang->getFrontendOpts().Inputs.size() == 1 &&
|
|
assert(Clang->getFrontendOpts().Inputs.size() == 1 &&
|
|
"Invocation must have exactly one source file!");
|
|
"Invocation must have exactly one source file!");
|
|
@@ -2420,7 +2420,7 @@ void ASTUnit::CodeComplete(StringRef File, unsigned Line, unsigned Column,
|
|
//
|
|
//
|
|
// FIXME: We shouldn't need to do this, the target should be immutable once
|
|
// FIXME: We shouldn't need to do this, the target should be immutable once
|
|
// created. This complexity should be lifted elsewhere.
|
|
// created. This complexity should be lifted elsewhere.
|
|
- Clang->getTarget().setForcedLangOptions(Clang->getLangOpts());
|
|
|
|
|
|
+ Clang->getTarget().adjust(Clang->getLangOpts());
|
|
|
|
|
|
assert(Clang->getFrontendOpts().Inputs.size() == 1 &&
|
|
assert(Clang->getFrontendOpts().Inputs.size() == 1 &&
|
|
"Invocation must have exactly one source file!");
|
|
"Invocation must have exactly one source file!");
|