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

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: else clause no longer needed 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') | no next file with comments »
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 BrowserCompileServer() : HadError(false) {}
47 : CompileServer(Comp), InputStream(nullptr), HadError(false) {}
48 46
49 ~BrowserCompileServer() final; 47 ~BrowserCompileServer() final;
50 48
51 void run() final; 49 void run() final;
52 50
53 ErrorCode &getErrorCode() final; 51 ErrorCode &getErrorCode() final;
54 52
55 /// Parse and set up the flags for compile jobs. 53 /// Parse and set up the flags for compile jobs.
56 void getParsedFlags(uint32_t NumThreads, int argc, char **argv); 54 void getParsedFlags(uint32_t NumThreads, int argc, char **argv);
57 55
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 std::unique_ptr<ELFStreamer> ELFStream; 104 std::unique_ptr<ELFStreamer> ELFStream;
107 ClFlags Flags; 105 ClFlags Flags;
108 ClFlagsExtra ExtraFlags; 106 ClFlagsExtra ExtraFlags;
109 std::thread CompileThread; 107 std::thread CompileThread;
110 std::atomic<bool> HadError; 108 std::atomic<bool> HadError;
111 }; 109 };
112 110
113 } // end of namespace Ice 111 } // end of namespace Ice
114 112
115 #endif // SUBZERO_SRC_ICEBROWSERCOMPILESERVER_H 113 #endif // SUBZERO_SRC_ICEBROWSERCOMPILESERVER_H
OLDNEW
« no previous file with comments | « no previous file | src/IceBuildDefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698