| OLD | NEW |
| 1 //===- BitcodeMunge.cpp - Subzero Bitcode Munger ----------------*- C++ -*-===// | 1 //===- BitcodeMunge.cpp - Subzero Bitcode Munger ----------------*- C++ -*-===// |
| 2 // | 2 // |
| 3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 // | 9 // |
| 10 // Test harness for testing malformed bitcode files in Subzero. | 10 // Test harness for testing malformed bitcode files in Subzero. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 Ice::ClFlags Flags; | 27 Ice::ClFlags Flags; |
| 28 Flags.AllowErrorRecovery = true; | 28 Flags.AllowErrorRecovery = true; |
| 29 Flags.GenerateUnitTestMessages = true; | 29 Flags.GenerateUnitTestMessages = true; |
| 30 Ice::GlobalContext Ctx(DumpStream, DumpStream, nullptr, | 30 Ice::GlobalContext Ctx(DumpStream, DumpStream, nullptr, |
| 31 Ice::IceV_Instructions, Ice::Target_X8632, | 31 Ice::IceV_Instructions, Ice::Target_X8632, |
| 32 Ice::Opt_m1, "", Flags); | 32 Ice::Opt_m1, "", Flags); |
| 33 Ice::PNaClTranslator Translator(&Ctx, Flags); | 33 Ice::PNaClTranslator Translator(&Ctx, Flags); |
| 34 Translator.translateBuffer(TestName, MungedInput.get()); | 34 Translator.translateBuffer(TestName, MungedInput.get()); |
| 35 | 35 |
| 36 cleanupTest(); | 36 cleanupTest(); |
| 37 return Translator.getErrorStatus() == 0; | 37 return Translator.getErrorStatus().value() == 0; |
| 38 } | 38 } |
| 39 | 39 |
| 40 } // end of namespace IceTest | 40 } // end of namespace IceTest |
| OLD | NEW |