diff options
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/IR/AutoUpgrade.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 4 | 
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/IR/AutoUpgrade.cpp b/llvm/lib/IR/AutoUpgrade.cpp index 32cfe278c73..d12bf7b9e3c 100644 --- a/llvm/lib/IR/AutoUpgrade.cpp +++ b/llvm/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/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index 68015b759a7..75a70965a3a 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/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;  | 

