diff options
author | Melanie Blower <melanie.blower@intel.com> | 2021-06-28 12:41:24 -0400 |
---|---|---|
committer | Melanie Blower <melanie.blower@intel.com> | 2021-06-28 12:42:59 -0400 |
commit | 8815ef823c803e98f328068d1abde255296de9c3 (patch) | |
tree | f1ad0d9c0962ed0648b8ebbf57ab1b59017b383a /clang/lib/Frontend/CompilerInstance.cpp | |
parent | 3dee1e8a848d56178fc6013c343c1b144efb1425 (diff) | |
download | llvm-8815ef823c803e98f328068d1abde255296de9c3.zip llvm-8815ef823c803e98f328068d1abde255296de9c3.tar.gz llvm-8815ef823c803e98f328068d1abde255296de9c3.tar.bz2 |
Revert "[clang][PATCH][nfc] Refactor TargetInfo::adjust to pass DiagnosticsEngine to allow diagnostics on target-unsupported options"
This reverts commit 2c02b0c3f45414ac6c64583e006a26113c028304.
buildbot fails
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) |