From 51fce2c886e4ca33272975cc80bc1cc5abfcdffd Mon Sep 17 00:00:00 2001 From: Manman Ren Date: Mon, 9 Dec 2013 21:07:27 +0000 Subject: Merging r196172: ------------------------------------------------------------------------ r196172 | mren | 2013-12-02 16:12:14 -0800 (Mon, 02 Dec 2013) | 4 lines Debug Info: rename getDebugInfoVersionFromModule to getDebugMetadataVersionFromModule. Suggested by Eric. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@196823 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/AutoUpgrade.cpp | 2 +- lib/IR/DebugInfo.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/IR/AutoUpgrade.cpp b/lib/IR/AutoUpgrade.cpp index 32cfe27..d12bf7b 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 9abc8e9..70a756f 100644 --- a/lib/IR/DebugInfo.cpp +++ b/lib/IR/DebugInfo.cpp @@ -1479,8 +1479,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; -- cgit v1.1