mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 00:36:36 +00:00
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
This commit is contained in:
parent
ff40d5e6d4
commit
44de223927
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user