Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 //===- subzero/src/IceCompiler.h - Compiler driver --------------*- C++ -*-===// | |
| 2 // | |
| 3 // The Subzero Code Generator | |
| 4 // | |
| 5 // This file is distributed under the University of Illinois Open Source | |
| 6 // License. See LICENSE.TXT for details. | |
| 7 // | |
| 8 //===----------------------------------------------------------------------===// | |
| 9 // | |
| 10 // This file declares the driver for translating bitcode to native code. | |
| 11 // | |
| 12 //===----------------------------------------------------------------------===// | |
| 13 | |
| 14 #ifndef SUBZERO_SRC_ICECOMPILER_H | |
| 15 #define SUBZERO_SRC_ICECOMPILER_H | |
| 16 | |
| 17 #include "IceDefs.h" | |
| 18 | |
| 19 namespace Ice { | |
| 20 | |
| 21 class CompileServer; | |
| 22 | |
| 23 // A compiler driver. It may be called to handle a single compile request. | |
| 24 class Compiler { | |
| 25 Compiler(const Compiler &) = delete; | |
| 26 Compiler &operator=(const Compiler &) = delete; | |
| 27 | |
| 28 public: | |
| 29 Compiler() : ReturnValue(0) {} | |
| 30 | |
| 31 void run(int argc, char **argv, CompileServer &Server); | |
|
Mircea Trofin
2015/03/13 22:01:34
Could argument passing happen before run is called
jvoung (off chromium)
2015/03/18 15:39:09
Hmm, good point.
There is an Ice::ClFlags class t
Mircea Trofin
2015/03/18 16:51:06
I think the 2 issues are indeed related. I believe
| |
| 32 | |
| 33 int getReturnValue() const { return ReturnValue; } | |
| 34 | |
| 35 private: | |
| 36 void setReturnValue(int V) { ReturnValue = V; } | |
| 37 | |
| 38 int ReturnValue; | |
| 39 }; | |
| 40 | |
| 41 } // end of namespace Ice | |
| 42 | |
| 43 #endif // SUBZERO_SRC_ICECOMPILER_H | |
| OLD | NEW |