| Index: src/llvm2ice.cpp
|
| diff --git a/src/llvm2ice.cpp b/src/llvm2ice.cpp
|
| index a98c75d327cf75af67c07711e3c13237f7ec30f1..2f3176500cfd64dd2b98c24e86e4ad00a22ac363 100644
|
| --- a/src/llvm2ice.cpp
|
| +++ b/src/llvm2ice.cpp
|
| @@ -172,6 +172,12 @@ static cl::opt<bool> AllowErrorRecovery(
|
| cl::desc("Allow error recovery when reading PNaCl bitcode."),
|
| cl::init(false));
|
|
|
| +// TODO(kschimpf) Remove once the emitter handles these cases.
|
| +static cl::opt<bool>
|
| + StubConstantCalls("stub-const-calls",
|
| + cl::desc("Stub indirect calls to constants."),
|
| + cl::init(false));
|
| +
|
| static cl::opt<bool> LLVMVerboseErrors(
|
| "verbose-llvm-parse-errors",
|
| cl::desc("Print out more descriptive PNaCl bitcode parse errors when "
|
| @@ -313,6 +319,7 @@ int main(int argc, char **argv) {
|
| Flags.TranslateOnly = TranslateOnly;
|
| Flags.DisableIRGeneration = DisableIRGeneration;
|
| Flags.AllowErrorRecovery = AllowErrorRecovery;
|
| + Flags.StubConstantCalls = StubConstantCalls;
|
|
|
| // Force -build-on-read=0 for .ll files.
|
| const std::string LLSuffix = ".ll";
|
|
|