summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-28 20:45:51 +0000
committerChris Lattner <sabre@nondot.org>2009-12-28 20:45:51 +0000
commit7093946ab1d3b836e1f340a1c66c16880b5b6ef4 (patch)
tree1813750fbb165fbf9dc4a1ae1b79fd2a9959fd82 /llvm/lib/Transforms/IPO
parentc9558df1f0144f43c4c6025d2bef4aa2ead518ee (diff)
downloadbcm5719-llvm-7093946ab1d3b836e1f340a1c66c16880b5b6ef4.tar.gz
bcm5719-llvm-7093946ab1d3b836e1f340a1c66c16880b5b6ef4.zip
rename getMDKind -> getMDKindID, make it autoinsert if an MD Kind
doesn't exist already, eliminate registerMDKind. Tidy up a bunch of random stuff. llvm-svn: 92225
Diffstat (limited to 'llvm/lib/Transforms/IPO')
-rw-r--r--llvm/lib/Transforms/IPO/StripSymbols.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/IPO/StripSymbols.cpp b/llvm/lib/Transforms/IPO/StripSymbols.cpp
index 0b5e00706c9..b213b014eb2 100644
--- a/llvm/lib/Transforms/IPO/StripSymbols.cpp
+++ b/llvm/lib/Transforms/IPO/StripSymbols.cpp
@@ -221,9 +221,7 @@ static bool StripDebugInfo(Module &M) {
NMD->eraseFromParent();
}
MetadataContext &TheMetadata = M.getContext().getMetadata();
- unsigned MDDbgKind = TheMetadata.getMDKind("dbg");
- if (!MDDbgKind)
- return Changed;
+ unsigned MDDbgKind = TheMetadata.getMDKindID("dbg");
for (Module::iterator MI = M.begin(), ME = M.end(); MI != ME; ++MI)
for (Function::iterator FI = MI->begin(), FE = MI->end(); FI != FE;
OpenPOWER on IntegriCloud