| 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 /// This file defines the basic commandline-based compile server. | 11 /// This file 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 #pragma clang diagnostic push | 22 #pragma clang diagnostic push |
| 23 #pragma clang diagnostic ignored "-Wunused-parameter" | 23 #pragma clang diagnostic ignored "-Wunused-parameter" |
| 24 #pragma clang diagnostic ignored "-Wshadow" |
| 24 // Include code to handle converting textual bitcode records to binary (for | 25 // Include code to handle converting textual bitcode records to binary (for |
| 25 // INPUT_IS_TEXTUAL_BITCODE). | 26 // INPUT_IS_TEXTUAL_BITCODE). |
| 26 #include "llvm/Bitcode/NaCl/NaClBitcodeMungeUtils.h" | 27 #include "llvm/Bitcode/NaCl/NaClBitcodeMungeUtils.h" |
| 27 #include "llvm/Support/FileSystem.h" | 28 #include "llvm/Support/FileSystem.h" |
| 28 #include "llvm/Support/raw_os_ostream.h" | 29 #include "llvm/Support/raw_os_ostream.h" |
| 29 #include "llvm/Support/Signals.h" | 30 #include "llvm/Support/Signals.h" |
| 30 #include "llvm/Support/SourceMgr.h" | 31 #include "llvm/Support/SourceMgr.h" |
| 31 #include "llvm/Support/StreamingMemoryObject.h" | 32 #include "llvm/Support/StreamingMemoryObject.h" |
| 32 #pragma clang diagnostic pop | 33 #pragma clang diagnostic pop |
| 33 | 34 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 }); | 173 }); |
| 173 CompileThread.join(); | 174 CompileThread.join(); |
| 174 } else { | 175 } else { |
| 175 getCompiler().run(ExtraFlags, *Ctx.get(), std::move(InputStream)); | 176 getCompiler().run(ExtraFlags, *Ctx.get(), std::move(InputStream)); |
| 176 } | 177 } |
| 177 transferErrorCode(getReturnValue( | 178 transferErrorCode(getReturnValue( |
| 178 ExtraFlags, static_cast<ErrorCodes>(Ctx->getErrorStatus()->value()))); | 179 ExtraFlags, static_cast<ErrorCodes>(Ctx->getErrorStatus()->value()))); |
| 179 } | 180 } |
| 180 | 181 |
| 181 } // end of namespace Ice | 182 } // end of namespace Ice |
| OLD | NEW |