[llvm-commits] [llvm] r107323 - in /llvm/trunk: lib/Transforms/IPO/StripSymbols.cpp test/Transforms/StripSymbols/2010-06-30-StripDebug.ll
Duncan Sands
baldrick at free.fr
Thu Jul 1 00:12:27 PDT 2010
Hi Devang,
> - NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.gv");
> - if (NMD) {
> - Changed = true;
> - NMD->eraseFromParent();
> - }
> -
> - NMD = M.getNamedMetadata("llvm.dbg.lv");
> - if (NMD) {
> - Changed = true;
> - NMD->eraseFromParent();
> + for (Module::named_metadata_iterator NMI = M.named_metadata_begin(),
> + NME = M.named_metadata_end(); NMI != NME;) {
> + NamedMDNode *NMD = NMI;
> + ++NMI;
> + if (NMD->getName().startswith("llvm.dbg."))
> + NMD->eraseFromParent();
should you set Changed to "true" here?
Ciao,
Duncan.
More information about the llvm-commits
mailing list