diff options
author | James Y Knight <jyknight@google.com> | 2019-01-14 17:16:55 +0000 |
---|---|---|
committer | James Y Knight <jyknight@google.com> | 2019-01-14 17:16:55 +0000 |
commit | 68729f94ee8383921ef638a300009a88138dc30f (patch) | |
tree | 97e67db521b2aa64d4dde1e7a8b04db2fdd8a0ea /llvm/include/llvm-c/Core.h | |
parent | 32ef52063c207054911a9e0435cc85330faf2ee3 (diff) | |
download | bcm5719-llvm-68729f94ee8383921ef638a300009a88138dc30f.tar.gz bcm5719-llvm-68729f94ee8383921ef638a300009a88138dc30f.zip |
Remove NameLen argument from newly-introduced IR C APIs.
Normally, changing the function signatures of C APIs is disallowed,
but as these two are brand new last week, and haven't been released
yet, it is okay in this instance.
As per discussion in D56556, we will not add NameLen arguments to IR
building APIs, for the following reasons:
1. We do not want to deprecate all of the IR building APIs, just to add a
NameLen argument to each one.
2. Consistency is important, so adding it just to new ones is unfortunate.
3. The IR names are completely optional, useful for readability of IR
only. There is no value in ever supporting nul bytes.
Differential Revision: https://reviews.llvm.org/D56669
llvm-svn: 351076
Diffstat (limited to 'llvm/include/llvm-c/Core.h')
-rw-r--r-- | llvm/include/llvm-c/Core.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h index e22e4b78eec..8a67e3bba3d 100644 --- a/llvm/include/llvm-c/Core.h +++ b/llvm/include/llvm-c/Core.h @@ -2812,8 +2812,7 @@ LLVMBasicBlockRef LLVMGetEntryBasicBlock(LLVMValueRef Fn); * @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 @@ LLVMValueRef LLVMBuildPointerCast(LLVMBuilderRef, LLVMValueRef Val, 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); |