aboutsummaryrefslogtreecommitdiff
path: root/tools/opt
diff options
context:
space:
mode:
authorJan Voung <jvoung@chromium.org>2013-03-28 16:56:41 -0700
committerJan Voung <jvoung@chromium.org>2013-03-28 16:56:41 -0700
commit946417b9fe7da9334c76182f28020ff4f46e11f8 (patch)
tree7fb6f266cec32158396e074aba7195848f652cd2 /tools/opt
parent37a28705d4dfdda8ecbb9aca9bc10a6fd6d80582 (diff)
Add a pass to strip bitcode metadata.
This only works on instruction attachments for now. Since it is a ModulePass we can add something to strip NamedMetadata based on a whitelist, if we want to retain some of that. It does not touch debug metadata, and leaves -strip-debug to handle that. BUG= https://code.google.com/p/nativeclient/issues/detail?id=3348 Review URL: https://codereview.chromium.org/12844027
Diffstat (limited to 'tools/opt')
-rw-r--r--tools/opt/opt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index c682768164..106da562c6 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -585,6 +585,7 @@ int main(int argc, char **argv) {
initializeExpandVarArgsPass(Registry);
initializeGlobalCleanupPass(Registry);
initializeResolveAliasesPass(Registry);
+ initializeStripMetadataPass(Registry);
// @LOCALMOD-END
cl::ParseCommandLineOptions(argc, argv,