Index: src/llvm2ice.cpp |
diff --git a/src/llvm2ice.cpp b/src/llvm2ice.cpp |
index 53c90eea59f70ff7e09c01551f102fa738ac5600..3b1813dfcdc8553acfcee6de05b5143783cb9bad 100644 |
--- a/src/llvm2ice.cpp |
+++ b/src/llvm2ice.cpp |
@@ -167,6 +167,10 @@ static cl::opt<bool> |
cl::desc("Build ICE instructions when reading bitcode"), |
cl::init(true)); |
+static cl::opt<bool> AllowErrorRecovery( |
+ "allow-pnacl-reader-error-recovery", |
+ cl::desc("Allow error recovery when reading PNaCl bitcode."), |
+ cl::init(false)); |
static cl::opt<bool> |
LLVMVerboseErrors( |
@@ -297,6 +301,7 @@ int main(int argc, char **argv) { |
Flags.VerboseFocusOn = VerboseFocusOn; |
Flags.TranslateOnly = TranslateOnly; |
Flags.DisableIRGeneration = DisableIRGeneration; |
+ Flags.AllowErrorRecovery = AllowErrorRecovery; |
// Force -build-on-read=0 for .ll files. |
const std::string LLSuffix = ".ll"; |