mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-12 06:31:14 +00:00
If a named mdnode is removed then mark module as changed.
llvm-svn: 107412
This commit is contained in:
parent
511e5f47de
commit
fa499484c0
@ -227,8 +227,10 @@ static bool StripDebugInfo(Module &M) {
|
||||
NME = M.named_metadata_end(); NMI != NME;) {
|
||||
NamedMDNode *NMD = NMI;
|
||||
++NMI;
|
||||
if (NMD->getName().startswith("llvm.dbg."))
|
||||
if (NMD->getName().startswith("llvm.dbg.")) {
|
||||
NMD->eraseFromParent();
|
||||
Changed = true;
|
||||
}
|
||||
}
|
||||
|
||||
unsigned MDDbgKind = M.getMDKindID("dbg");
|
||||
|
Loading…
x
Reference in New Issue
Block a user