mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 15:39:00 +00:00
Strip new llvm.dbg.value intrinsic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95807 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1b6c060591
commit
df9292cbdd
@ -214,6 +214,15 @@ static bool StripDebugInfo(Module &M) {
|
||||
Changed = true;
|
||||
}
|
||||
|
||||
if (Function *DbgVal = M.getFunction("llvm.dbg.value")) {
|
||||
while (!DbgVal->use_empty()) {
|
||||
CallInst *CI = cast<CallInst>(DbgVal->use_back());
|
||||
CI->eraseFromParent();
|
||||
}
|
||||
DbgVal->eraseFromParent();
|
||||
Changed = true;
|
||||
}
|
||||
|
||||
NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.gv");
|
||||
if (NMD) {
|
||||
Changed = true;
|
||||
|
Loading…
Reference in New Issue
Block a user