Debug Info: rename getDebugInfoVersionFromModule to getDebugMetadataVersionFromModule.
authorManman Ren <manman.ren@gmail.com>
Tue, 3 Dec 2013 00:12:14 +0000 (00:12 +0000)
committerManman Ren <manman.ren@gmail.com>
Tue, 3 Dec 2013 00:12:14 +0000 (00:12 +0000)
Suggested by Eric.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196172 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo.h
lib/IR/AutoUpgrade.cpp
lib/IR/DebugInfo.cpp

index 7c4c1123b509de6881fa40fdafa9d4e61c873dc1..768cf4ea10f22fa2c186ccf50c19e21d3b73a0e0 100644 (file)
@@ -759,8 +759,8 @@ DITypeIdentifierMap generateDITypeIdentifierMap(const NamedMDNode *CU_Nodes);
 /// Return true if module is modified.
 bool StripDebugInfo(Module &M);
 
-/// Return Debug Info Version by checking module flags.
-unsigned getDebugInfoVersionFromModule(const Module &M);
+/// Return Debug Info Metadata Version by checking module flags.
+unsigned getDebugMetadataVersionFromModule(const Module &M);
 
 /// DebugInfoFinder tries to list all debug info MDNodes used in a module. To
 /// list debug info MDNodes used by an instruction, DebugInfoFinder uses
index 32cfe278c73aa68ae95d4fcef7fbd9b37aa36549..d12bf7b9e3c9f502ca6aaf91323d585d8e905bc6 100644 (file)
@@ -494,7 +494,7 @@ Value *llvm::UpgradeBitCastExpr(unsigned Opc, Constant *C, Type *DestTy) {
 /// Check the debug info version number, if it is out-dated, drop the debug
 /// info. Return true if module is modified.
 bool llvm::UpgradeDebugInfo(Module &M) {
-  if (getDebugInfoVersionFromModule(M) == DEBUG_METADATA_VERSION)
+  if (getDebugMetadataVersionFromModule(M) == DEBUG_METADATA_VERSION)
     return false;
 
   return StripDebugInfo(M);
index 68015b759a733b797b358e28f5684ef460e6a924..75a70965a3a11ff071799433c1074121fff1d9cb 100644 (file)
@@ -1478,8 +1478,8 @@ bool llvm::StripDebugInfo(Module &M) {
   return Changed;
 }
 
-/// Return Debug Info Version by checking module flags.
-unsigned llvm::getDebugInfoVersionFromModule(const Module &M) {
+/// Return Debug Info Metadata Version by checking module flags.
+unsigned llvm::getDebugMetadataVersionFromModule(const Module &M) {
   Value *Val = M.getModuleFlag("Debug Info Version");
   if (!Val)
     return 0;