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 |
11 /// \brief Defines the basic commandline-based compile server. | 11 /// \brief Defines the basic commandline-based compile server. |
12 /// | 12 /// |
13 //===----------------------------------------------------------------------===// | 13 //===----------------------------------------------------------------------===// |
14 | 14 |
15 #include "IceCompileServer.h" | 15 #include "IceCompileServer.h" |
16 | 16 |
17 #include "IceClFlags.h" | 17 #include "IceClFlags.h" |
18 #include "IceClFlagsExtra.h" | 18 #include "IceClFlagsExtra.h" |
19 #include "IceELFStreamer.h" | 19 #include "IceELFStreamer.h" |
20 #include "IceGlobalContext.h" | 20 #include "IceGlobalContext.h" |
21 | 21 |
| 22 #ifdef __clang__ |
22 #pragma clang diagnostic push | 23 #pragma clang diagnostic push |
23 #pragma clang diagnostic ignored "-Wunused-parameter" | 24 #pragma clang diagnostic ignored "-Wunused-parameter" |
| 25 #endif // __clang__ |
| 26 |
24 #include "llvm/Bitcode/NaCl/NaClBitcodeMungeUtils.h" | 27 #include "llvm/Bitcode/NaCl/NaClBitcodeMungeUtils.h" |
25 #include "llvm/Support/FileSystem.h" | 28 #include "llvm/Support/FileSystem.h" |
26 #include "llvm/Support/raw_os_ostream.h" | 29 #include "llvm/Support/raw_os_ostream.h" |
27 #include "llvm/Support/Signals.h" | 30 #include "llvm/Support/Signals.h" |
28 #include "llvm/Support/SourceMgr.h" | 31 #include "llvm/Support/SourceMgr.h" |
29 #include "llvm/Support/StreamingMemoryObject.h" | 32 #include "llvm/Support/StreamingMemoryObject.h" |
| 33 |
| 34 #ifdef __clang__ |
30 #pragma clang diagnostic pop | 35 #pragma clang diagnostic pop |
| 36 #endif // __clang__ |
31 | 37 |
32 #include <cstdio> | 38 #include <cstdio> |
33 #include <fstream> | 39 #include <fstream> |
34 #include <iostream> | 40 #include <iostream> |
35 #include <thread> | 41 #include <thread> |
36 | 42 |
37 namespace Ice { | 43 namespace Ice { |
38 | 44 |
39 namespace { | 45 namespace { |
40 | 46 |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 }); | 207 }); |
202 CompileThread.join(); | 208 CompileThread.join(); |
203 } else { | 209 } else { |
204 getCompiler().run(ExtraFlags, *Ctx.get(), std::move(InputStream)); | 210 getCompiler().run(ExtraFlags, *Ctx.get(), std::move(InputStream)); |
205 } | 211 } |
206 transferErrorCode(getReturnValue( | 212 transferErrorCode(getReturnValue( |
207 ExtraFlags, static_cast<ErrorCodes>(Ctx->getErrorStatus()->value()))); | 213 ExtraFlags, static_cast<ErrorCodes>(Ctx->getErrorStatus()->value()))); |
208 } | 214 } |
209 | 215 |
210 } // end of namespace Ice | 216 } // end of namespace Ice |
OLD | NEW |