OLD | NEW |
1 //===- subzero/src/IceCompiler.h - Compiler driver --------------*- C++ -*-===// | 1 //===- subzero/src/IceCompiler.h - Compiler driver --------------*- C++ -*-===// |
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 // This file declares the driver for translating bitcode to native code. | 10 // This file declares the driver for translating bitcode to native code. |
(...skipping 12 matching lines...) Expand all Loading... |
23 namespace Ice { | 23 namespace Ice { |
24 | 24 |
25 class ClFlagsExtra; | 25 class ClFlagsExtra; |
26 | 26 |
27 // A compiler driver. It may be called to handle a single compile request. | 27 // A compiler driver. It may be called to handle a single compile request. |
28 class Compiler { | 28 class Compiler { |
29 Compiler(const Compiler &) = delete; | 29 Compiler(const Compiler &) = delete; |
30 Compiler &operator=(const Compiler &) = delete; | 30 Compiler &operator=(const Compiler &) = delete; |
31 | 31 |
32 public: | 32 public: |
33 Compiler() {} | 33 Compiler() = default; |
34 | 34 |
35 // Run the compiler with the given GlobalContext for compilation | 35 // Run the compiler with the given GlobalContext for compilation |
36 // state. Upon error, the Context's error status will be set. | 36 // state. Upon error, the Context's error status will be set. |
37 void run(const ClFlagsExtra &ExtraFlags, GlobalContext &Ctx, | 37 void run(const ClFlagsExtra &ExtraFlags, GlobalContext &Ctx, |
38 std::unique_ptr<llvm::DataStreamer> &&InputStream); | 38 std::unique_ptr<llvm::DataStreamer> &&InputStream); |
39 }; | 39 }; |
40 | 40 |
41 } // end of namespace Ice | 41 } // end of namespace Ice |
42 | 42 |
43 #endif // SUBZERO_SRC_ICECOMPILER_H | 43 #endif // SUBZERO_SRC_ICECOMPILER_H |
OLD | NEW |