aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Transforms
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 /include/llvm/Transforms
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 'include/llvm/Transforms')
-rw-r--r--include/llvm/Transforms/NaCl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Transforms/NaCl.h b/include/llvm/Transforms/NaCl.h
index 6782f6581f..58166bbf22 100644
--- a/include/llvm/Transforms/NaCl.h
+++ b/include/llvm/Transforms/NaCl.h
@@ -24,6 +24,7 @@ ModulePass *createExpandTlsConstantExprPass();
ModulePass *createExpandVarArgsPass();
ModulePass *createGlobalCleanupPass();
ModulePass *createResolveAliasesPass();
+ModulePass *createStripMetadataPass();
}