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 // This file defines the basic commandline-based compile server. | 10 // This file defines the basic commandline-based compile server. |
11 // | 11 // |
12 //===----------------------------------------------------------------------===// | 12 //===----------------------------------------------------------------------===// |
13 | 13 |
14 #include "IceCompileServer.h" | 14 #include "IceCompileServer.h" |
15 | 15 |
16 #include "IceClFlags.h" | 16 #include "IceClFlags.h" |
17 #include "IceClFlagsExtra.h" | 17 #include "IceClFlagsExtra.h" |
18 #include "IceELFStreamer.h" | 18 #include "IceELFStreamer.h" |
19 #include "IceGlobalContext.h" | 19 #include "IceGlobalContext.h" |
| 20 |
| 21 #pragma clang diagnostic push |
| 22 #pragma clang diagnostic ignored "-Wunused-parameter" |
20 // Include code to handle converting textual bitcode records to binary (for | 23 // Include code to handle converting textual bitcode records to binary (for |
21 // INPUT_IS_TEXTUAL_BITCODE). | 24 // INPUT_IS_TEXTUAL_BITCODE). |
22 #include "llvm/Bitcode/NaCl/NaClBitcodeMungeUtils.h" | 25 #include "llvm/Bitcode/NaCl/NaClBitcodeMungeUtils.h" |
23 #include "llvm/Support/FileSystem.h" | 26 #include "llvm/Support/FileSystem.h" |
24 #include "llvm/Support/raw_os_ostream.h" | 27 #include "llvm/Support/raw_os_ostream.h" |
25 #include "llvm/Support/Signals.h" | 28 #include "llvm/Support/Signals.h" |
26 #include "llvm/Support/SourceMgr.h" | 29 #include "llvm/Support/SourceMgr.h" |
27 #include "llvm/Support/StreamingMemoryObject.h" | 30 #include "llvm/Support/StreamingMemoryObject.h" |
| 31 #pragma clang diagnostic pop |
28 | 32 |
29 #include <fstream> | 33 #include <fstream> |
30 #include <iostream> | 34 #include <iostream> |
31 #include <thread> | 35 #include <thread> |
32 | 36 |
33 namespace Ice { | 37 namespace Ice { |
34 | 38 |
35 namespace { | 39 namespace { |
36 | 40 |
37 static_assert(!(BuildDefs::textualBitcode() && PNACL_BROWSER_TRANSLATOR), | 41 static_assert(!(BuildDefs::textualBitcode() && PNACL_BROWSER_TRANSLATOR), |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 }); | 171 }); |
168 CompileThread.join(); | 172 CompileThread.join(); |
169 } else { | 173 } else { |
170 getCompiler().run(ExtraFlags, *Ctx.get(), std::move(InputStream)); | 174 getCompiler().run(ExtraFlags, *Ctx.get(), std::move(InputStream)); |
171 } | 175 } |
172 transferErrorCode(getReturnValue( | 176 transferErrorCode(getReturnValue( |
173 ExtraFlags, static_cast<ErrorCodes>(Ctx->getErrorStatus()->value()))); | 177 ExtraFlags, static_cast<ErrorCodes>(Ctx->getErrorStatus()->value()))); |
174 } | 178 } |
175 | 179 |
176 } // end of namespace Ice | 180 } // end of namespace Ice |
OLD | NEW |