aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Transforms
diff options
context:
space:
mode:
authorMark Seaborn <mseaborn@chromium.org>2013-06-13 15:50:59 -0700
committerMark Seaborn <mseaborn@chromium.org>2013-06-13 15:50:59 -0700
commit81aece3b90250dd6dd1bd99af3f5c7b516ed4628 (patch)
treef3ac2d5ebafe0f544377465ccd9464c309fcce30 /include/llvm/Transforms
parent9b861c2166a7a2e388466097ec73613896e7373b (diff)
PNaCl: Strip more unwanted attributes: "align" on functions and "unnamed_addr"
Do this stripping in the StripAttributes pass. Change the pass to be a ModulePass so that it can modify global variables. Change the ABI verifier to check this. Also update a comment about "nuw" and "nsw". BUG=https://code.google.com/p/nativeclient/issues/detail?id=3415 TEST=*.ll tests + PNaCl toolchain trybots Review URL: https://codereview.chromium.org/16991002
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r--include/llvm/Transforms/NaCl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Transforms/NaCl.h b/include/llvm/Transforms/NaCl.h
index 8632c47706..bc39302489 100644
--- a/include/llvm/Transforms/NaCl.h
+++ b/include/llvm/Transforms/NaCl.h
@@ -40,7 +40,7 @@ ModulePass *createReplacePtrsWithIntsPass();
ModulePass *createResolveAliasesPass();
FunctionPass *createResolvePNaClIntrinsicsPass();
ModulePass *createRewritePNaClLibraryCallsPass();
-FunctionPass *createStripAttributesPass();
+ModulePass *createStripAttributesPass();
ModulePass *createStripMetadataPass();
FunctionPass *createInsertDivideCheckPass();