Lowering the severity level for Debug Info Version mismatch
This commit is contained in:
@@ -1096,7 +1096,7 @@ Module::writeOutput(OutputType outputType, const char *outFileName,
|
|||||||
// "Debug Info Version" constant to the module. LLVM will ignore
|
// "Debug Info Version" constant to the module. LLVM will ignore
|
||||||
// our Debug Info metadata without it.
|
// our Debug Info metadata without it.
|
||||||
if (g->generateDebuggingSymbols == true) {
|
if (g->generateDebuggingSymbols == true) {
|
||||||
module->addModuleFlag(llvm::Module::Error, "Debug Info Version", llvm::DEBUG_METADATA_VERSION);
|
module->addModuleFlag(llvm::Module::Warning, "Debug Info Version", llvm::DEBUG_METADATA_VERSION);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user