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

Side by Side Diff: src/IceBrowserCompileServer.cpp

Issue 1202253002: Includes module header first. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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
OLDNEW
1 //===- subzero/src/IceBrowserCompileServer.cpp - Browser compile server ---===// 1 //===- subzero/src/IceBrowserCompileServer.cpp - Browser compile server ---===//
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 defines the browser-based compile server. 10 // This file defines the browser-based compile server.
11 // 11 //
12 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===//
13 13
14 // Can only compile this with the NaCl compiler (needs irt.h, and the 14 // Can only compile this with the NaCl compiler (needs irt.h, and the
15 // unsandboxed LLVM build using the trusted compiler does not have irt.h). 15 // unsandboxed LLVM build using the trusted compiler does not have irt.h).
16 #if PNACL_BROWSER_TRANSLATOR 16 #if PNACL_BROWSER_TRANSLATOR
17 17
18 #include "IceBrowserCompileServer.h"
19
18 #include <cstring> 20 #include <cstring>
Jim Stichnoth 2015/06/23 23:05:04 I just became aware of http://llvm.org/docs/Coding
John 2015/06/23 23:57:09 but that means goig through EVERY subzero file...
19 #include <irt.h> 21 #include <irt.h>
20 #include <irt_dev.h> 22 #include <irt_dev.h>
21 #include <pthread.h> 23 #include <pthread.h>
22 #include <thread> 24 #include <thread>
23 25
24 #include "llvm/Support/QueueStreamer.h" 26 #include "llvm/Support/QueueStreamer.h"
25 27
26 #include "IceBrowserCompileServer.h"
27 28
28 namespace Ice { 29 namespace Ice {
29 30
30 // Create C wrappers around callback handlers for the IRT interface. 31 // Create C wrappers around callback handlers for the IRT interface.
31 namespace { 32 namespace {
32 33
33 BrowserCompileServer *gCompileServer; 34 BrowserCompileServer *gCompileServer;
34 struct nacl_irt_private_pnacl_translator_compile gIRTFuncs; 35 struct nacl_irt_private_pnacl_translator_compile gIRTFuncs;
35 36
36 void getIRTInterfaces() { 37 void getIRTInterfaces() {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 this->getCompiler().run(ExtraFlags, *Ctx.get(), 190 this->getCompiler().run(ExtraFlags, *Ctx.get(),
190 // Retain original reference, but the compiler 191 // Retain original reference, but the compiler
191 // (LLVM's MemoryObject) wants to handle deletion. 192 // (LLVM's MemoryObject) wants to handle deletion.
192 std::unique_ptr<llvm::DataStreamer>(InputStream)); 193 std::unique_ptr<llvm::DataStreamer>(InputStream));
193 }); 194 });
194 } 195 }
195 196
196 } // end of namespace Ice 197 } // end of namespace Ice
197 198
198 #endif // PNACL_BROWSER_TRANSLATOR 199 #endif // PNACL_BROWSER_TRANSLATOR
OLDNEW
« no previous file with comments | « src/IceAssemblerX8632.cpp ('k') | src/IceCfg.cpp » ('j') | src/IceClFlags.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698