From b672d1e48b6e02bb69c7cd9bcfa7509c81514c07 Mon Sep 17 00:00:00 2001 From: TDYa127 Date: Thu, 28 Jun 2012 21:21:45 -0700 Subject: Merge iceland to greenland. Change-Id: Ic4440a658bb2fccb558024a736d896baaf172f3c --- src/compiler_llvm/compiler_llvm.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/compiler_llvm/compiler_llvm.cc') diff --git a/src/compiler_llvm/compiler_llvm.cc b/src/compiler_llvm/compiler_llvm.cc index dc796434df..3a1bebcd2e 100644 --- a/src/compiler_llvm/compiler_llvm.cc +++ b/src/compiler_llvm/compiler_llvm.cc @@ -116,7 +116,11 @@ CompilerLLVM::~CompilerLLVM() { CompilationUnit* CompilerLLVM::AllocateCompilationUnit() { MutexLock GUARD(num_cunits_lock_); - return new CompilationUnit(this, num_cunits_++); + CompilationUnit* cunit = new CompilationUnit(this, num_cunits_++); + if (!bitcode_filename_.empty()) { + cunit->SetBitcodeFileName(StringPrintf("%s-%zu", bitcode_filename_.c_str(), num_cunits_-1)); + } + return cunit; } -- cgit v1.2.3-59-g8ed1b