[PATCH] D56669: Remove NameLen argument from newly-introduced IR C APIs.
James Y Knight via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 14 09:20:51 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL351076: Remove NameLen argument from newly-introduced IR C APIs. (authored by jyknight, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D56669?vs=181569&id=181571#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56669/new/
https://reviews.llvm.org/D56669
Files:
llvm/trunk/include/llvm-c/Core.h
llvm/trunk/lib/IR/Core.cpp
Index: llvm/trunk/include/llvm-c/Core.h
===================================================================
--- llvm/trunk/include/llvm-c/Core.h
+++ llvm/trunk/include/llvm-c/Core.h
@@ -2812,8 +2812,7 @@
* @see llvm::BasicBlock::Create()
*/
LLVMBasicBlockRef LLVMCreateBasicBlockInContext(LLVMContextRef C,
- const char *Name,
- size_t NameLen);
+ const char *Name);
/**
* Append a basic block to the end of a function.
@@ -3644,7 +3643,7 @@
LLVMTypeRef DestTy, const char *Name);
LLVMValueRef LLVMBuildIntCast2(LLVMBuilderRef, LLVMValueRef Val,
LLVMTypeRef DestTy, LLVMBool IsSigned,
- const char *Name, size_t NameLen);
+ const char *Name);
LLVMValueRef LLVMBuildFPCast(LLVMBuilderRef, LLVMValueRef Val,
LLVMTypeRef DestTy, const char *Name);
Index: llvm/trunk/lib/IR/Core.cpp
===================================================================
--- llvm/trunk/lib/IR/Core.cpp
+++ llvm/trunk/lib/IR/Core.cpp
@@ -2533,9 +2533,8 @@
}
LLVMBasicBlockRef LLVMCreateBasicBlockInContext(LLVMContextRef C,
- const char *Name,
- size_t NameLen) {
- return wrap(llvm::BasicBlock::Create(*unwrap(C), StringRef(Name, NameLen)));
+ const char *Name) {
+ return wrap(llvm::BasicBlock::Create(*unwrap(C), Name));
}
LLVMBasicBlockRef LLVMAppendBasicBlockInContext(LLVMContextRef C,
@@ -3542,9 +3541,9 @@
LLVMValueRef LLVMBuildIntCast2(LLVMBuilderRef B, LLVMValueRef Val,
LLVMTypeRef DestTy, LLVMBool IsSigned,
- const char *Name, size_t NameLen) {
- return wrap(unwrap(B)->CreateIntCast(unwrap(Val), unwrap(DestTy),
- IsSigned, StringRef(Name, NameLen)));
+ const char *Name) {
+ return wrap(
+ unwrap(B)->CreateIntCast(unwrap(Val), unwrap(DestTy), IsSigned, Name));
}
LLVMValueRef LLVMBuildIntCast(LLVMBuilderRef B, LLVMValueRef Val,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56669.181571.patch
Type: text/x-patch
Size: 2327 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190114/ced1351d/attachment.bin>
More information about the llvm-commits
mailing list