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

Side by Side Diff: src/IceBrowserCompileServer.h

Issue 1197223002: Subzero: Use C++11 member initializers where practical. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rebase Created 5 years, 6 months 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 | « src/IceAssemblerX8632.h ('k') | src/IceBrowserCompileServer.cpp » ('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 // 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
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
OLDNEW
« no previous file with comments | « src/IceAssemblerX8632.h ('k') | src/IceBrowserCompileServer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698