diff options
Diffstat (limited to 'src/compiler_llvm/ir_builder.h')
| -rw-r--r-- | src/compiler_llvm/ir_builder.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/compiler_llvm/ir_builder.h b/src/compiler_llvm/ir_builder.h index 46c37f18ad..f21cfaf1d3 100644 --- a/src/compiler_llvm/ir_builder.h +++ b/src/compiler_llvm/ir_builder.h @@ -120,8 +120,8 @@ class IRBuilder : public LLVMIRBuilder { StoreToObjectOffset(object_addr, offset, new_value, tbaa_.GetMemoryJType(special_ty, j_ty)); } - void SetTBAACall(llvm::CallInst* call_inst, TBAASpecialType special_ty) { - call_inst->setMetadata(llvm::LLVMContext::MD_tbaa, tbaa_.GetSpecialType(special_ty)); + void SetTBAA(llvm::Instruction* inst, TBAASpecialType special_ty) { + inst->setMetadata(llvm::LLVMContext::MD_tbaa, tbaa_.GetSpecialType(special_ty)); } @@ -217,10 +217,16 @@ class IRBuilder : public LLVMIRBuilder { // Runtime Helper Function //-------------------------------------------------------------------------- + RuntimeSupportBuilder& Runtime() { + return *runtime_support_; + } + + // TODO: Deprecate llvm::Function* GetRuntime(runtime_support::RuntimeId rt) { return runtime_support_->GetRuntimeSupportFunction(rt); } + // TODO: Deprecate void SetRuntimeSupport(RuntimeSupportBuilder* runtime_support) { // Can only set once. We can't do this on constructor, because RuntimeSupportBuilder needs // IRBuilder. |