OSDN Git Service

Allow stubbing of called constant addresses using command line argument.
authorKarl Schimpf <kschimpf@google.com>
Thu, 5 Feb 2015 18:55:36 +0000 (10:55 -0800)
committerKarl Schimpf <kschimpf@google.com>
Thu, 5 Feb 2015 18:55:36 +0000 (10:55 -0800)
commit7ad1bed99d058199a3ba246a5383458518596fbc
tree100a4de6b6c29eb1b81f9d25264b52a4bcc9ba04
parent33a5f41d1e1224bdc8dab1fd1f2834281331df40
Allow stubbing of called constant addresses using command line argument.

When specified (via command line) replaces all called constant addresses
with a stubbed call to the first defined function in the bitcode file.
This allows testing of subzero without having to fix that downstream
code (after parsing) may not handle such addresses.

BUG=None
R=jvoung@chromium.org

Review URL: https://codereview.chromium.org/902713002
src/IceClFlags.h
src/PNaClTranslator.cpp
src/llvm2ice.cpp