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

Unified Diff: src/main.cpp

Issue 1511483005: clean up doxygen comments for main (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: changes suggested by stichnot 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/main.cpp
diff --git a/src/main.cpp b/src/main.cpp
index e30ac7da59b4ccf9d49b61d151b0958305525ffc..9e2a6ecf32d6f5f7d31c97162d457ddc2c6816fe 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -17,12 +17,16 @@
#include "IceBuildDefs.h"
#include "IceCompileServer.h"
+/// Depending on whether we are building the compiler for the browser or
+/// standalone, we will end up creating a Ice::BrowserCompileServer or
+/// Ice::CLCompileServer object. Method
+/// Ice::CompileServer::runAndReturnErrorCode is used for the invocation.
+/// There are no real commandline arguments in the browser case. They are
+/// supplied via IPC so argc, and argv are not used in that case.
+/// We can only compile the Ice::BrowserCompileServer object with the PNaCl
+/// compiler toolchain, when building Subzero as a sandboxed translator.
int main(int argc, char **argv) {
- // Start file server and "wait" for compile request.
- // Can only compile the BrowserCompileServer w/ the NaCl compiler.
if (Ice::BuildDefs::browser()) {
- // There are no real commandline arguments in the browser case. They are
- // supplied via IPC.
assert(argc == 1);
return Ice::BrowserCompileServer().runAndReturnErrorCode();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698