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

Unified Diff: src/IceBrowserCompileServer.cpp

Issue 1742833002: Subzero. Fix CfgLocalAllocator bug. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/IceCfg.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceBrowserCompileServer.cpp
diff --git a/src/IceBrowserCompileServer.cpp b/src/IceBrowserCompileServer.cpp
index b9903bf53b07199f55109253478eddb74de8719c..27b51ca4923bc69e66f3350bf758722733c62344 100644
--- a/src/IceBrowserCompileServer.cpp
+++ b/src/IceBrowserCompileServer.cpp
@@ -14,10 +14,10 @@
// Can only compile this with the NaCl compiler (needs irt.h, and the
// unsandboxed LLVM build using the trusted compiler does not have irt.h).
-#if PNACL_BROWSER_TRANSLATOR
-
#include "IceBrowserCompileServer.h"
+#if PNACL_BROWSER_TRANSLATOR
+
// Headers which are not properly part of the SDK are included by their path in
// the NaCl tree.
#ifdef __pnacl__
@@ -230,4 +230,22 @@ void BrowserCompileServer::startCompileThread(int ObjFD) {
} // end of namespace Ice
+#else // !PNACL_BROWSER_TRANSLATOR
+
+#include "llvm/Support/ErrorHandling.h"
+
+namespace Ice {
+
+BrowserCompileServer::~BrowserCompileServer() {}
+
+void BrowserCompileServer::run() {
+ llvm::report_fatal_error("no browser hookups");
+}
+
+ErrorCode &BrowserCompileServer::getErrorCode() {
+ llvm::report_fatal_error("no browser hookups");
+}
+
+} // end of namespace Ice
+
#endif // PNACL_BROWSER_TRANSLATOR
« no previous file with comments | « no previous file | src/IceCfg.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698