Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: src/IceBrowserCompileServer.h

Issue 1494753003: cleanup main (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: changes suggested by stichnot Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/IceBuildDefs.h » ('j') | src/IceBuildDefs.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 /// \file 10 /// \file
(...skipping 19 matching lines...) Expand all
30 } // end of namespace llvm 30 } // end of namespace llvm
31 31
32 namespace Ice { 32 namespace Ice {
33 33
34 /// The browser variant of the compile server. Compared to the commandline 34 /// The browser variant of the compile server. Compared to the commandline
35 /// version, this version gets compile requests over IPC. Each compile request 35 /// version, this version gets compile requests over IPC. Each compile request
36 /// will have a slimmed down version of argc, argv while other flags are set to 36 /// will have a slimmed down version of argc, argv while other flags are set to
37 /// defaults that make sense in the browser case. The output file is specified 37 /// defaults that make sense in the browser case. The output file is specified
38 /// via a posix FD, and input bytes are pushed to the server. 38 /// via a posix FD, and input bytes are pushed to the server.
39 class BrowserCompileServer : public CompileServer { 39 class BrowserCompileServer : public CompileServer {
40 BrowserCompileServer() = delete;
41 BrowserCompileServer(const BrowserCompileServer &) = delete; 40 BrowserCompileServer(const BrowserCompileServer &) = delete;
42 BrowserCompileServer &operator=(const BrowserCompileServer &) = delete; 41 BrowserCompileServer &operator=(const BrowserCompileServer &) = delete;
43 class StringStream; 42 class StringStream;
44 43
45 public: 44 public:
46 explicit BrowserCompileServer(Compiler &Comp) 45 explicit BrowserCompileServer()
Jim Stichnoth 2015/12/07 17:37:13 Remove "explicit" for a zero-arg ctor.
rkotlerimgtec 2015/12/07 18:32:07 Done.
47 : CompileServer(Comp), InputStream(nullptr), HadError(false) {} 46 : InputStream(nullptr), HadError(false) {}
Jim Stichnoth 2015/12/07 17:37:12 You can omit InputStream(nullptr) because of the "
rkotlerimgtec 2015/12/07 18:32:07 Done.
48 47
49 ~BrowserCompileServer() final; 48 ~BrowserCompileServer() final;
50 49
51 void run() final; 50 void run() final;
52 51
53 ErrorCode &getErrorCode() final; 52 ErrorCode &getErrorCode() final;
54 53
55 /// Parse and set up the flags for compile jobs. 54 /// Parse and set up the flags for compile jobs.
56 void getParsedFlags(uint32_t NumThreads, int argc, char **argv); 55 void getParsedFlags(uint32_t NumThreads, int argc, char **argv);
57 56
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 std::unique_ptr<ELFStreamer> ELFStream; 105 std::unique_ptr<ELFStreamer> ELFStream;
107 ClFlags Flags; 106 ClFlags Flags;
108 ClFlagsExtra ExtraFlags; 107 ClFlagsExtra ExtraFlags;
109 std::thread CompileThread; 108 std::thread CompileThread;
110 std::atomic<bool> HadError; 109 std::atomic<bool> HadError;
111 }; 110 };
112 111
113 } // end of namespace Ice 112 } // end of namespace Ice
114 113
115 #endif // SUBZERO_SRC_ICEBROWSERCOMPILESERVER_H 114 #endif // SUBZERO_SRC_ICEBROWSERCOMPILESERVER_H
OLDNEW
« no previous file with comments | « no previous file | src/IceBuildDefs.h » ('j') | src/IceBuildDefs.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698