Chromium Code Reviews| Index: src/llvm2ice.cpp |
| diff --git a/src/llvm2ice.cpp b/src/llvm2ice.cpp |
| index a98c75d327cf75af67c07711e3c13237f7ec30f1..5c4807649b71815895c7ddab73f9bad2726c912f 100644 |
| --- a/src/llvm2ice.cpp |
| +++ b/src/llvm2ice.cpp |
| @@ -172,6 +172,11 @@ static cl::opt<bool> AllowErrorRecovery( |
| cl::desc("Allow error recovery when reading PNaCl bitcode."), |
| cl::init(false)); |
| +static cl::opt<bool> |
|
jvoung (off chromium)
2015/02/05 18:50:06
Could add a TODO to remove once the emitter handle
Karl
2015/02/05 18:58:12
Done.
|
| + 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 +318,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"; |