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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | 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/main.cpp - Entry point for bitcode translation ---------===// 1 //===- subzero/src/main.cpp - Entry point for bitcode translation ---------===//
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 /// \file 10 /// \file
11 /// \brief Defines the entry point for translating PNaCl bitcode into native 11 /// \brief Defines the entry point for translating PNaCl bitcode into native
12 /// code. 12 /// code.
13 /// 13 ///
14 //===----------------------------------------------------------------------===// 14 //===----------------------------------------------------------------------===//
15 15
16 #include "IceBrowserCompileServer.h" 16 #include "IceBrowserCompileServer.h"
17 #include "IceBuildDefs.h" 17 #include "IceBuildDefs.h"
18 #include "IceCompileServer.h" 18 #include "IceCompileServer.h"
19 19
20 /// Depending on whether we are building the compiler for the browser or
21 /// standalone, we will end up creating a Ice::BrowserCompileServer or
22 /// Ice::CLCompileServer object. Method
23 /// Ice::CompileServer::runAndReturnErrorCode is used for the invocation.
24 /// There are no real commandline arguments in the browser case. They are
25 /// supplied via IPC so argc, and argv are not used in that case.
26 /// We can only compile the Ice::BrowserCompileServer object with the PNaCl
27 /// compiler toolchain, when building Subzero as a sandboxed translator.
20 int main(int argc, char **argv) { 28 int main(int argc, char **argv) {
21 // Start file server and "wait" for compile request.
22 // Can only compile the BrowserCompileServer w/ the NaCl compiler.
23 if (Ice::BuildDefs::browser()) { 29 if (Ice::BuildDefs::browser()) {
24 // There are no real commandline arguments in the browser case. They are
25 // supplied via IPC.
26 assert(argc == 1); 30 assert(argc == 1);
27 return Ice::BrowserCompileServer().runAndReturnErrorCode(); 31 return Ice::BrowserCompileServer().runAndReturnErrorCode();
28 } 32 }
29 return Ice::CLCompileServer(argc, argv).runAndReturnErrorCode(); 33 return Ice::CLCompileServer(argc, argv).runAndReturnErrorCode();
30 } 34 }
OLDNEW
« 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