diff options
author | Melanie Blower <melanie.blower@intel.com> | 2021-06-28 15:47:03 -0400 |
---|---|---|
committer | Melanie Blower <melanie.blower@intel.com> | 2021-06-28 15:47:21 -0400 |
commit | 1d85d0879a75b9556b10f55739437af8233c0b64 (patch) | |
tree | 2e15d6de92ddd8157c8660925c4240155901e3fe /clang/lib/Frontend/CompilerInstance.cpp | |
parent | 333c0acb9bb36bd89ab75abba3d368da67f7370c (diff) | |
download | llvm-1d85d0879a75b9556b10f55739437af8233c0b64.zip llvm-1d85d0879a75b9556b10f55739437af8233c0b64.tar.gz llvm-1d85d0879a75b9556b10f55739437af8233c0b64.tar.bz2 |
Revert "[clang][PATCH][nfc] Refactor TargetInfo::adjust to pass DiagnosticsEngine to allow diagnostics on target-unsupported options"
This reverts commit 2dbe1c675fe94eeb7973dcc25b049d25f4ca4fa0.
More buildbot failures
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 2ae3be6..0633841 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -142,7 +142,7 @@ bool CompilerInstance::createTarget() { // Inform the target of the language options. // FIXME: We shouldn't need to do this, the target should be immutable once // created. This complexity should be lifted elsewhere. - getTarget().adjust(getDiagnostics(), getLangOpts()); + getTarget().adjust(getLangOpts()); // Adjust target options based on codegen options. getTarget().adjustTargetOptions(getCodeGenOpts(), getTargetOpts()); @@ -457,7 +457,7 @@ void CompilerInstance::createPreprocessor(TranslationUnitKind TUKind) { getSourceManager(), *HeaderInfo, *this, /*IdentifierInfoLookup=*/nullptr, /*OwnsHeaderSearch=*/true, TUKind); - getTarget().adjust(getDiagnostics(), getLangOpts()); + getTarget().adjust(getLangOpts()); PP->Initialize(getTarget(), getAuxTarget()); if (PPOpts.DetailedRecord) |