Remove NameLen argument from newly-introduced IR C APIs.
authorJames Y Knight <jyknight@google.com>
Mon, 14 Jan 2019 17:16:55 +0000 (17:16 +0000)
committerJames Y Knight <jyknight@google.com>
Mon, 14 Jan 2019 17:16:55 +0000 (17:16 +0000)
commit68729f94ee8383921ef638a300009a88138dc30f
tree97e67db521b2aa64d4dde1e7a8b04db2fdd8a0ea
parent32ef52063c207054911a9e0435cc85330faf2ee3
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
llvm/include/llvm-c/Core.h
llvm/lib/IR/Core.cpp