diff options
author | Mark Seaborn <mseaborn@chromium.org> | 2013-06-05 11:20:20 -0700 |
---|---|---|
committer | Mark Seaborn <mseaborn@chromium.org> | 2013-06-05 11:20:20 -0700 |
commit | c0d9b337419b72e69cbd9c64f84ae39560ab344f (patch) | |
tree | 357d707887775feadeb1fa26a94dfbff96e2605b /tools | |
parent | 69a8e32d4f4451e11cda6d48b318ba4f7e01c683 (diff) |
PNaCl ABI: Strip out attributes on functions and function calls
Add a pass, StripAttributes, for doing this, and enable it.
Add an ABI check to reject these attributes.
BUG=https://code.google.com/p/nativeclient/issues/detail?id=2346
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3415
TEST=*.ll tests + PNaCl toolchain trybots
Review URL: https://codereview.chromium.org/16325025
Diffstat (limited to 'tools')
-rw-r--r-- | tools/opt/opt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 81006c3507..490d1bc6e3 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -629,6 +629,7 @@ int main(int argc, char **argv) { initializeResolveAliasesPass(Registry); initializeResolvePNaClIntrinsicsPass(Registry); initializeRewritePNaClLibraryCallsPass(Registry); + initializeStripAttributesPass(Registry); initializeStripMetadataPass(Registry); // @LOCALMOD-END |