From ba67d7d31efbbdc6e8e8870b2cf0faf7d22db454 Mon Sep 17 00:00:00 2001 From: Shih-wei Liao Date: Sat, 23 Jun 2012 18:48:04 -0700 Subject: Revert "Cleanup runtime support. Inline via IR builder." This reverts commit afa97e2b4ede9c5fb590399b106a42728ce3b999. --- src/compiler_llvm/method_compiler.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/compiler_llvm/method_compiler.cc') diff --git a/src/compiler_llvm/method_compiler.cc b/src/compiler_llvm/method_compiler.cc index ce2b99f40a..eef71db957 100644 --- a/src/compiler_llvm/method_compiler.cc +++ b/src/compiler_llvm/method_compiler.cc @@ -2217,7 +2217,9 @@ llvm::Value* MethodCompiler::EmitConditionResult(llvm::Value* lhs, void MethodCompiler::EmitMarkGCCard(llvm::Value* value, llvm::Value* target_addr) { // Using runtime support, let the target can override by InlineAssembly. - irb_.Runtime().EmitMarkGCCard(value, target_addr); + llvm::Function* runtime_func = irb_.GetRuntime(MarkGCCard); + + irb_.CreateCall2(runtime_func, value, target_addr); } void -- cgit v1.2.3-59-g8ed1b