OLD | NEW |
1 //===- subzero/src/IceCompileServer.cpp - Compile server ------------------===// | 1 //===- subzero/src/IceCompileServer.cpp - Compile server ------------------===// |
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 |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 std::thread CompileThread([this, &ExtraFlags, &InputStream]() { | 233 std::thread CompileThread([this, &ExtraFlags, &InputStream]() { |
234 Ctx->initParserThread(); | 234 Ctx->initParserThread(); |
235 getCompiler().run(ExtraFlags, *Ctx.get(), std::move(InputStream)); | 235 getCompiler().run(ExtraFlags, *Ctx.get(), std::move(InputStream)); |
236 }); | 236 }); |
237 CompileThread.join(); | 237 CompileThread.join(); |
238 } else { | 238 } else { |
239 getCompiler().run(ExtraFlags, *Ctx.get(), std::move(InputStream)); | 239 getCompiler().run(ExtraFlags, *Ctx.get(), std::move(InputStream)); |
240 } | 240 } |
241 transferErrorCode(getReturnValue( | 241 transferErrorCode(getReturnValue( |
242 ExtraFlags, static_cast<ErrorCodes>(Ctx->getErrorStatus()->value()))); | 242 ExtraFlags, static_cast<ErrorCodes>(Ctx->getErrorStatus()->value()))); |
| 243 Ctx->dumpConstantLookupCounts(); |
243 } | 244 } |
244 | 245 |
245 } // end of namespace Ice | 246 } // end of namespace Ice |
OLD | NEW |