r196143 - Expand comments for Debug Info Version.
Manman Ren
manman.ren at gmail.com
Mon Dec 2 11:37:35 PST 2013
Author: mren
Date: Mon Dec 2 13:37:35 2013
New Revision: 196143
URL: http://llvm.org/viewvc/llvm-project?rev=196143&view=rev
Log:
Expand comments for Debug Info Version.
Modified:
cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=196143&r1=196142&r2=196143&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Mon Dec 2 13:37:35 2013
@@ -260,7 +260,10 @@ void CodeGenModule::Release() {
CodeGenOpts.DwarfVersion);
if (DebugInfo)
// We support a single version in the linked module: error out when
- // modules do not have the same version.
+ // modules do not have the same version. We are going to implement dropping
+ // debug info when the version number is not up-to-date. Once that is
+ // done, the bitcode linker is not going to see modules with different
+ // version numbers.
getModule().addModuleFlag(llvm::Module::Error, "Debug Info Version",
llvm::dwarf::DEBUG_INFO_VERSION);
More information about the cfe-commits
mailing list