From dbd0034c50362cc1dd8eee144e78e183cc49eaf7 Mon Sep 17 00:00:00 2001 From: Shih-wei Liao Date: Fri, 20 Apr 2012 14:27:29 -0700 Subject: Specify the filename upon writing. Change-Id: I5aac9401ab03cc5fa3a6573ef9c9dbdda9163149 --- src/compiler_llvm/compilation_unit.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compiler_llvm/compilation_unit.cc') diff --git a/src/compiler_llvm/compilation_unit.cc b/src/compiler_llvm/compilation_unit.cc index 66fdba06c6..4eb7fb53cb 100644 --- a/src/compiler_llvm/compilation_unit.cc +++ b/src/compiler_llvm/compilation_unit.cc @@ -137,11 +137,11 @@ CompilationUnit::~CompilationUnit() { } -bool CompilationUnit::WriteBitcodeToFile() { +bool CompilationUnit::WriteBitcodeToFile(const std::string& bitcode_filename) { std::string errmsg; llvm::OwningPtr out_file( - new llvm::tool_output_file(bitcode_filename_.c_str(), errmsg, + new llvm::tool_output_file(bitcode_filename.c_str(), errmsg, llvm::raw_fd_ostream::F_Binary)); -- cgit v1.2.3-59-g8ed1b