Derive metadata hierarchy from Value instead of User.
[oota-llvm.git] / lib / Transforms / IPO / StripSymbols.cpp
index 77d44b27e2082351408936a2684bfeb85e8b0cd3..57aaf43c65add176123a24091970ba362507bff1 100644 (file)
@@ -250,8 +250,6 @@ static bool StripDebugInfo(Module &M) {
   if (NMD)
     NMD->eraseFromParent();
 
-  // Remove dead metadata.
-  M.getContext().RemoveDeadMetadata();
   return true;
 }