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

Unified Diff: src/IceCompileServer.cpp

Issue 1848303003: Simplify references to command line flags. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 4 years, 9 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 | « src/IceClFlags.cpp ('k') | src/IceCompiler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCompileServer.cpp
diff --git a/src/IceCompileServer.cpp b/src/IceCompileServer.cpp
index e62f268e7c96edf852f4c5d05a0199532cd5eb41..0ed98ba5f72b79cc3906b5f40e0e478873b697dd 100644
--- a/src/IceCompileServer.cpp
+++ b/src/IceCompileServer.cpp
@@ -96,7 +96,7 @@ std::unique_ptr<Ostream> makeStream(const std::string &Filename,
}
ErrorCodes getReturnValue(ErrorCodes Val) {
- if (GlobalContext::Flags.getAlwaysExitSuccess())
+ if (getFlags().getAlwaysExitSuccess())
return EC_None;
return Val;
}
@@ -159,7 +159,7 @@ void CLCompileServer::run() {
llvm::sys::PrintStackTraceOnErrorSignal();
}
ClFlags::parseFlags(argc, argv);
- ClFlags &Flags = GlobalContext::Flags;
+ ClFlags &Flags = ClFlags::Flags;
ClFlags::getParsedClFlags(Flags);
// Override report_fatal_error if we want to exit with 0 status.
@@ -229,7 +229,7 @@ void CLCompileServer::run() {
}
Ctx.reset(new GlobalContext(Ls.get(), Os.get(), Ls.get(), ELFStr.get()));
- if (Ctx->getFlags().getNumTranslationThreads() != 0) {
+ if (getFlags().getNumTranslationThreads() != 0) {
std::thread CompileThread([this, &Flags, &InputStream]() {
Ctx->initParserThread();
getCompiler().run(Flags, *Ctx.get(), std::move(InputStream));
« no previous file with comments | « src/IceClFlags.cpp ('k') | src/IceCompiler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698