diff options
author | Juergen Ributzka <juergen@ributzka.de> | 2023-12-04 14:26:44 -0800 |
---|---|---|
committer | Juergen Ributzka <juergen@ributzka.de> | 2023-12-04 14:28:22 -0800 |
commit | 1157bee5ce2c7acb803cda5003b2ea9d0ed962e2 (patch) | |
tree | d86e24831167a28c9a738ec24245a7349de1d29a /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | d9570babf1b253767a3a6c1450fa1b9e10b4e2f9 (diff) | |
download | llvm-1157bee5ce2c7acb803cda5003b2ea9d0ed962e2.zip llvm-1157bee5ce2c7acb803cda5003b2ea9d0ed962e2.tar.gz llvm-1157bee5ce2c7acb803cda5003b2ea9d0ed962e2.tar.bz2 |
Revert "[clang][modules] Reset codegen options. (#74006)"
This reverts commit fef1854318bd797c1f8a141d4b45b113b04860d1.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 56de0f7..be0d496 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -4787,18 +4787,6 @@ std::string CompilerInvocation::getModuleHash() const { if (getCodeGenOpts().DebugTypeExtRefs) HBuilder.addRange(getCodeGenOpts().DebugPrefixMap); - // Extend the signature with the affecting debug options. - if (getHeaderSearchOpts().ModuleFormat == "obj") { -#define DEBUGOPT(Name, Bits, Default) HBuilder.add(CodeGenOpts->Name); -#define VALUE_DEBUGOPT(Name, Bits, Default) HBuilder.add(CodeGenOpts->Name); -#define ENUM_DEBUGOPT(Name, Type, Bits, Default) \ - HBuilder.add(static_cast<unsigned>(CodeGenOpts->get##Name())); -#define BENIGN_DEBUGOPT(Name, Bits, Default) -#define BENIGN_VALUE_DEBUGOPT(Name, Bits, Default) -#define BENIGN_ENUM_DEBUGOPT(Name, Type, Bits, Default) -#include "clang/Basic/DebugOptions.def" - } - // Extend the signature with the enabled sanitizers, if at least one is // enabled. Sanitizers which cannot affect AST generation aren't hashed. SanitizerSet SanHash = getLangOpts().Sanitize; @@ -4845,7 +4833,6 @@ std::vector<std::string> CompilerInvocationBase::getCC1CommandLine() const { void CompilerInvocation::resetNonModularOptions() { getLangOpts().resetNonModularOptions(); getPreprocessorOpts().resetNonModularOptions(); - getCodeGenOpts().resetNonModularOptions(getHeaderSearchOpts().ModuleFormat); } void CompilerInvocation::clearImplicitModuleBuildOptions() { |