diff options
author | Mark Seaborn <mseaborn@chromium.org> | 2013-06-04 17:18:01 -0700 |
---|---|---|
committer | Mark Seaborn <mseaborn@chromium.org> | 2013-06-04 17:18:01 -0700 |
commit | 51c0650c7bb78fed8ce0aba537312aea17f58d7d (patch) | |
tree | 1d19c01c79b858427a95b37862d47c393de3fbf6 /lib/Bitcode/NaCl/Reader/NaClBitcodeHeader.cpp | |
parent | a4dba98995121b623698f1b8951da71e17ec634d (diff) |
PNaCl: Enable RewritePNaClLibraryCalls and fix it to remove unused decls
Removing the unused declarations of setjmp()/longjmp() will be
necessary for future ABI checks which will reject these external
function declarations because they are not intrinsics.
StripDeadPrototypes is supposed to remove these declarations, but it
fails to do so because there are dead ConstantExprs referencing the
declarations. I suspect these are left behind by ReplacePtrsWithInts.
We could fix this by adding calls to removeDeadConstantUsers() to
StripDeadPrototypes or to ReplacePtrsWithInts, but for now it seems
cleaner to fix RewritePNaClLibraryCalls.
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3429
TEST=*.ll tests + tested along with an ABI check
Review URL: https://codereview.chromium.org/15931009
Diffstat (limited to 'lib/Bitcode/NaCl/Reader/NaClBitcodeHeader.cpp')
0 files changed, 0 insertions, 0 deletions