From 31d35de96576d2cddc134cdd0646ce4966052ae3 Mon Sep 17 00:00:00 2001 From: Nagi5Yeq Date: Mon, 1 Jun 2020 14:06:48 +0800 Subject: disable formatv for LLVM release lacks of RTTI support --- node/FunctionNode.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'node/FunctionNode.cc') diff --git a/node/FunctionNode.cc b/node/FunctionNode.cc index 0dcafb1..4fb5138 100644 --- a/node/FunctionNode.cc +++ b/node/FunctionNode.cc @@ -47,7 +47,7 @@ Value FunctionNode::CodeGen() { context_->AddFunction(name_, {type, function}); llvm::BasicBlock* block = llvm::BasicBlock::Create(GlobalLLVMContext, name_, function); - Log(LogLevel::PCC_INFO, "generating function {0} of type {1}", name_, + Log(LogLevel::PCC_INFO, "generating function %s of type %s", name_.c_str(), type->GetCommonName()); builder->SetInsertPoint(block); context_->PushScope(&locals_); @@ -86,7 +86,7 @@ Value FunctionNode::CodeGen() { llvm::verifyFunction(*function, &MsgStream); MsgStream.flush(); if (!msg.empty()) { - Log(LogLevel::PCC_WARNING, "{0}", msg); + Log(LogLevel::PCC_INFO, "%s", msg.c_str()); } return nullptr; } @@ -117,7 +117,7 @@ Value ExternNode::CodeGen() { llvm::Function* function = llvm::cast(callee.getCallee()); function->setCallingConv(llvm::CallingConv::C); context_->AddFunction(name_, {type, function}); - Log(LogLevel::PCC_INFO, "extern function {0} of type {1}", name_, + Log(LogLevel::PCC_INFO, "extern function %s of type %s", name_.c_str(), type->GetCommonName()); return nullptr; } -- cgit