diff options
Diffstat (limited to 'contrib/llvm/tools/clang/include/clang/CodeGen/BackendUtil.h')
-rw-r--r-- | contrib/llvm/tools/clang/include/clang/CodeGen/BackendUtil.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/contrib/llvm/tools/clang/include/clang/CodeGen/BackendUtil.h b/contrib/llvm/tools/clang/include/clang/CodeGen/BackendUtil.h index d375a78..01721d3 100644 --- a/contrib/llvm/tools/clang/include/clang/CodeGen/BackendUtil.h +++ b/contrib/llvm/tools/clang/include/clang/CodeGen/BackendUtil.h @@ -11,11 +11,12 @@ #define LLVM_CLANG_CODEGEN_BACKENDUTIL_H #include "clang/Basic/LLVM.h" -#include "llvm/IR/FunctionInfo.h" +#include "llvm/IR/ModuleSummaryIndex.h" #include <memory> namespace llvm { class Module; + class MemoryBufferRef; } namespace clang { @@ -35,8 +36,12 @@ namespace clang { void EmitBackendOutput(DiagnosticsEngine &Diags, const CodeGenOptions &CGOpts, const TargetOptions &TOpts, const LangOptions &LOpts, - StringRef TDesc, llvm::Module *M, BackendAction Action, - raw_pwrite_stream *OS); + const llvm::DataLayout &TDesc, llvm::Module *M, + BackendAction Action, + std::unique_ptr<raw_pwrite_stream> OS); + + void EmbedBitcode(llvm::Module *M, const CodeGenOptions &CGOpts, + llvm::MemoryBufferRef Buf); } #endif |