mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
If a named mdnode is removed then mark module as changed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107412 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c6fcdeb8f9
commit
e62b203570
@ -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…
Reference in New Issue
Block a user