From 44de223927a6d32f599574b4d10093ce041c1acd Mon Sep 17 00:00:00 2001 From: Manman Ren Date: Tue, 3 Dec 2013 00:12:14 +0000 Subject: [PATCH] Debug Info: rename getDebugInfoVersionFromModule to getDebugMetadataVersionFromModule. Suggested by Eric. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196172 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/DebugInfo.h | 4 ++-- lib/IR/AutoUpgrade.cpp | 2 +- lib/IR/DebugInfo.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h index 7c4c1123b50..768cf4ea10f 100644 --- a/include/llvm/DebugInfo.h +++ b/include/llvm/DebugInfo.h @@ -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 diff --git a/lib/IR/AutoUpgrade.cpp b/lib/IR/AutoUpgrade.cpp index 32cfe278c73..d12bf7b9e3c 100644 --- a/lib/IR/AutoUpgrade.cpp +++ b/lib/IR/AutoUpgrade.cpp @@ -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); diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp index 68015b759a7..75a70965a3a 100644 --- a/lib/IR/DebugInfo.cpp +++ b/lib/IR/DebugInfo.cpp @@ -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; -- 2.34.1