| OLD | NEW |
| 1 //===- subzero/src/IceBrowserCompileServer.h - Browser server ---*- C++ -*-===// | 1 //===- subzero/src/IceBrowserCompileServer.h - Browser server ---*- 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 browser-specific compile server. | 10 // This file declares the browser-specific compile server. |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 private: | 93 private: |
| 94 std::string Buffer; | 94 std::string Buffer; |
| 95 llvm::raw_string_ostream StrBuf; | 95 llvm::raw_string_ostream StrBuf; |
| 96 }; | 96 }; |
| 97 // This currently only handles a single compile request, hence one copy | 97 // This currently only handles a single compile request, hence one copy |
| 98 // of the state. | 98 // of the state. |
| 99 std::unique_ptr<GlobalContext> Ctx; | 99 std::unique_ptr<GlobalContext> Ctx; |
| 100 // A borrowed reference to the current InputStream. The compiler owns | 100 // A borrowed reference to the current InputStream. The compiler owns |
| 101 // the actual reference so the server must be careful not to access | 101 // the actual reference so the server must be careful not to access |
| 102 // after the compiler is done. | 102 // after the compiler is done. |
| 103 llvm::QueueStreamer *InputStream; | 103 llvm::QueueStreamer *InputStream = nullptr; |
| 104 std::unique_ptr<Ostream> LogStream; | 104 std::unique_ptr<Ostream> LogStream; |
| 105 std::unique_ptr<llvm::raw_fd_ostream> EmitStream; | 105 std::unique_ptr<llvm::raw_fd_ostream> EmitStream; |
| 106 std::unique_ptr<StringStream> ErrorStream; | 106 std::unique_ptr<StringStream> ErrorStream; |
| 107 std::unique_ptr<ELFStreamer> ELFStream; | 107 std::unique_ptr<ELFStreamer> ELFStream; |
| 108 ClFlags Flags; | 108 ClFlags Flags; |
| 109 ClFlagsExtra ExtraFlags; | 109 ClFlagsExtra ExtraFlags; |
| 110 std::thread CompileThread; | 110 std::thread CompileThread; |
| 111 std::atomic<bool> HadError; | 111 std::atomic<bool> HadError; |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // end of namespace Ice | 114 } // end of namespace Ice |
| 115 | 115 |
| 116 #endif // SUBZERO_SRC_ICEBROWSERCOMPILESERVER_H | 116 #endif // SUBZERO_SRC_ICEBROWSERCOMPILESERVER_H |
| OLD | NEW |