diff options
| author | Nagi5Yeq <wu@x-nagi.com> | 2020-06-01 14:06:48 +0800 |
|---|---|---|
| committer | Nagi5Yeq <wu@x-nagi.com> | 2020-06-01 14:06:48 +0800 |
| commit | 31d35de96576d2cddc134cdd0646ce4966052ae3 (patch) | |
| tree | 1df4283f87c57e8e1d9e22959f1c389b9f274d62 /node/FunctionNode.cc | |
| parent | 1e993f800921d2a49ad0c71375512a9209347321 (diff) | |
disable formatv for LLVM release lacks of RTTI support
Diffstat (limited to 'node/FunctionNode.cc')
| -rw-r--r-- | node/FunctionNode.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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<llvm::Function>(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; } |
