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

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: Changes All Subzero includes to match LLVM style guide. 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 #include "llvm/Support/QueueStreamer.h"
20
18 #include <cstring> 21 #include <cstring>
19 #include <irt.h> 22 #include <irt.h>
20 #include <irt_dev.h> 23 #include <irt_dev.h>
21 #include <pthread.h> 24 #include <pthread.h>
22 #include <thread> 25 #include <thread>
23 26
24 #include "llvm/Support/QueueStreamer.h"
25
26 #include "IceBrowserCompileServer.h"
27
28 namespace Ice { 27 namespace Ice {
29 28
30 // Create C wrappers around callback handlers for the IRT interface. 29 // Create C wrappers around callback handlers for the IRT interface.
31 namespace { 30 namespace {
32 31
33 BrowserCompileServer *gCompileServer; 32 BrowserCompileServer *gCompileServer;
34 struct nacl_irt_private_pnacl_translator_compile gIRTFuncs; 33 struct nacl_irt_private_pnacl_translator_compile gIRTFuncs;
35 34
36 void getIRTInterfaces() { 35 void getIRTInterfaces() {
37 size_t QueryResult = 36 size_t QueryResult =
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 this->getCompiler().run(ExtraFlags, *Ctx.get(), 188 this->getCompiler().run(ExtraFlags, *Ctx.get(),
190 // Retain original reference, but the compiler 189 // Retain original reference, but the compiler
191 // (LLVM's MemoryObject) wants to handle deletion. 190 // (LLVM's MemoryObject) wants to handle deletion.
192 std::unique_ptr<llvm::DataStreamer>(InputStream)); 191 std::unique_ptr<llvm::DataStreamer>(InputStream));
193 }); 192 });
194 } 193 }
195 194
196 } // end of namespace Ice 195 } // end of namespace Ice
197 196
198 #endif // PNACL_BROWSER_TRANSLATOR 197 #endif // PNACL_BROWSER_TRANSLATOR
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698