aboutsummaryrefslogtreecommitdiff
path: root/lib/Bitcode/NaCl/Reader/NaClBitcodeHeader.cpp
diff options
context:
space:
mode:
authorMark Seaborn <mseaborn@chromium.org>2013-05-31 14:13:53 -0700
committerMark Seaborn <mseaborn@chromium.org>2013-05-31 14:13:53 -0700
commit2779e73d6ce7b681d8e1d3ea8a3890afe506e03a (patch)
tree7bc796a4db680f33a62fc6d3af468d813eb5faf6 /lib/Bitcode/NaCl/Reader/NaClBitcodeHeader.cpp
parentf2fc125f21dc8181d452a1160796a460b990497b (diff)
PNaCl ABI checker: Require global variable initialisers to be flattened
Check for the normal form produced by FlattenGlobals. We also require that all GlobalVariables have initialisers. External globals are not allowed. Note that we don't need to call TC.isValidType() on GlobalVariables any more: the new check is stricter. Update types.ll: * Split some checks into separate files for clarity. Otherwise the ordering of aliases/functions/globals/metadata gets tricky. * Convert a lot of the type-whitelisting tests to test via phi nodes rather than via global variables, since most of these types are now rejected for global variables. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3113 TEST=*.ll tests + PNaCl toolchain trybots Review URL: https://codereview.chromium.org/15914017
Diffstat (limited to 'lib/Bitcode/NaCl/Reader/NaClBitcodeHeader.cpp')
0 files changed, 0 insertions, 0 deletions