| Index: src/llvm2ice.cpp
|
| diff --git a/src/llvm2ice.cpp b/src/llvm2ice.cpp
|
| index 3cb13b3d9f09218bc3c15a25d618329b4790bba3..f14787705780e13e886531f7eb993a089700a349 100644
|
| --- a/src/llvm2ice.cpp
|
| +++ b/src/llvm2ice.cpp
|
| @@ -166,10 +166,11 @@ int main(int argc, char **argv) {
|
| Ice::GlobalContext Ctx(Ls, Os, VMask, TargetArch, OptLevel, TestPrefix,
|
| Flags);
|
|
|
| + int ErrorStatus = 0;
|
| if (BuildOnRead) {
|
| Ice::PNaClTranslator Translator(&Ctx, Flags);
|
| Translator.translate(IRFilename);
|
| - return Translator.getErrorStatus();
|
| + ErrorStatus = Translator.getErrorStatus();
|
| } else {
|
| // Parse the input LLVM IR file into a module.
|
| SMDiagnostic Err;
|
| @@ -189,6 +190,9 @@ int main(int argc, char **argv) {
|
|
|
| Ice::Converter Converter(Mod, &Ctx, Flags);
|
| Converter.convertToIce();
|
| - return Converter.getErrorStatus();
|
| + ErrorStatus = Converter.getErrorStatus();
|
| }
|
| + const bool FinalStats = true;
|
| + Ctx.dumpStats("_FINAL_", FinalStats);
|
| + return ErrorStatus;
|
| }
|
|
|