| OLD | NEW |
| 1 //===- subzero/src/PNaClTranslator.cpp - ICE from bitcode -----------------===// | 1 //===- subzero/src/PNaClTranslator.cpp - ICE from bitcode -----------------===// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 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 /// \file | 10 /// \file |
| 11 /// This file implements the PNaCl bitcode file to Ice, to machine code | 11 /// \brief Implements the interface for translation from PNaCl bitcode files to |
| 12 /// translator. | 12 /// ICE to machine code. |
| 13 /// | 13 /// |
| 14 //===----------------------------------------------------------------------===// | 14 //===----------------------------------------------------------------------===// |
| 15 | 15 |
| 16 #include "PNaClTranslator.h" | 16 #include "PNaClTranslator.h" |
| 17 | 17 |
| 18 #include "IceCfg.h" | 18 #include "IceCfg.h" |
| 19 #include "IceCfgNode.h" | 19 #include "IceCfgNode.h" |
| 20 #include "IceClFlags.h" | 20 #include "IceClFlags.h" |
| 21 #include "IceDefs.h" | 21 #include "IceDefs.h" |
| 22 #include "IceGlobalInits.h" | 22 #include "IceGlobalInits.h" |
| (...skipping 3318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3341 raw_string_ostream StrBuf(Buffer); | 3341 raw_string_ostream StrBuf(Buffer); |
| 3342 StrBuf << IRFilename << ": Does not contain a module!"; | 3342 StrBuf << IRFilename << ": Does not contain a module!"; |
| 3343 llvm::report_fatal_error(StrBuf.str()); | 3343 llvm::report_fatal_error(StrBuf.str()); |
| 3344 } | 3344 } |
| 3345 if (InputStreamFile.getBitcodeBytes().getExtent() % 4 != 0) { | 3345 if (InputStreamFile.getBitcodeBytes().getExtent() % 4 != 0) { |
| 3346 llvm::report_fatal_error("Bitcode stream should be a multiple of 4 bytes"); | 3346 llvm::report_fatal_error("Bitcode stream should be a multiple of 4 bytes"); |
| 3347 } | 3347 } |
| 3348 } | 3348 } |
| 3349 | 3349 |
| 3350 } // end of namespace Ice | 3350 } // end of namespace Ice |
| OLD | NEW |