| Index: src/IceBrowserCompileServer.h
|
| diff --git a/src/IceBrowserCompileServer.h b/src/IceBrowserCompileServer.h
|
| index f15ddafb93ad964c97fcc4403a3100d11a780e77..640fc78bd9162eef79bcedb01ea10626cce35620 100644
|
| --- a/src/IceBrowserCompileServer.h
|
| +++ b/src/IceBrowserCompileServer.h
|
| @@ -30,12 +30,12 @@ class raw_fd_ostream;
|
|
|
| namespace Ice {
|
|
|
| -// The browser variant of the compile server.
|
| -// Compared to the commandline version, this version gets compile
|
| -// requests over IPC. Each compile request will have a slimmed down
|
| -// version of argc, argv while other flags are set to defaults that
|
| -// make sense in the browser case. The output file is specified via
|
| -// a posix FD, and input bytes are pushed to the server.
|
| +/// The browser variant of the compile server.
|
| +/// Compared to the commandline version, this version gets compile
|
| +/// requests over IPC. Each compile request will have a slimmed down
|
| +/// version of argc, argv while other flags are set to defaults that
|
| +/// make sense in the browser case. The output file is specified via
|
| +/// a posix FD, and input bytes are pushed to the server.
|
| class BrowserCompileServer : public CompileServer {
|
| BrowserCompileServer() = delete;
|
| BrowserCompileServer(const BrowserCompileServer &) = delete;
|
| @@ -52,21 +52,21 @@ public:
|
|
|
| ErrorCode &getErrorCode() final;
|
|
|
| - // Parse and set up the flags for compile jobs.
|
| + /// Parse and set up the flags for compile jobs.
|
| void getParsedFlags(uint32_t NumThreads, int argc, char **argv);
|
|
|
| - // Creates the streams + context and starts the compile thread,
|
| - // handing off the streams + context.
|
| + /// Creates the streams + context and starts the compile thread,
|
| + /// handing off the streams + context.
|
| void startCompileThread(int OutFD);
|
|
|
| - // Call to push more bytes to the current input stream.
|
| - // Returns false on success and true on error.
|
| + /// Call to push more bytes to the current input stream.
|
| + /// Returns false on success and true on error.
|
| bool pushInputBytes(const void *Data, size_t NumBytes);
|
|
|
| - // Notify the input stream of EOF.
|
| + /// Notify the input stream of EOF.
|
| void endInputStream();
|
|
|
| - // Wait for the compile thread to complete then reset the state.
|
| + /// Wait for the compile thread to complete then reset the state.
|
| void waitForCompileThread() {
|
| CompileThread.join();
|
| if (Ctx->getErrorStatus()->value())
|
| @@ -94,12 +94,12 @@ private:
|
| std::string Buffer;
|
| llvm::raw_string_ostream StrBuf;
|
| };
|
| - // This currently only handles a single compile request, hence one copy
|
| - // of the state.
|
| + /// This currently only handles a single compile request, hence one copy
|
| + /// of the state.
|
| std::unique_ptr<GlobalContext> Ctx;
|
| - // A borrowed reference to the current InputStream. The compiler owns
|
| - // the actual reference so the server must be careful not to access
|
| - // after the compiler is done.
|
| + /// A borrowed reference to the current InputStream. The compiler owns
|
| + /// the actual reference so the server must be careful not to access
|
| + /// after the compiler is done.
|
| llvm::QueueStreamer *InputStream = nullptr;
|
| std::unique_ptr<Ostream> LogStream;
|
| std::unique_ptr<llvm::raw_fd_ostream> EmitStream;
|
|
|