[Modules] Consider -fmodule-feature in module hash and when loading
Any extra features from -fmodule-feature are part of the module hash and need to get validated on load. Also print them with -module-file-info. llvm-svn: 240433
This commit is contained in:
@@ -470,6 +470,13 @@ namespace {
|
||||
#define BENIGN_LANGOPT(Name, Bits, Default, Description)
|
||||
#define BENIGN_ENUM_LANGOPT(Name, Type, Bits, Default, Description)
|
||||
#include "clang/Basic/LangOptions.def"
|
||||
|
||||
if (!LangOpts.ModuleFeatures.empty()) {
|
||||
Out.indent(4) << "Module features:\n";
|
||||
for (StringRef Feature : LangOpts.ModuleFeatures)
|
||||
Out.indent(6) << Feature << "\n";
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user