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)); |