[llvm-commits] [llvm] r76447 - /llvm/trunk/include/llvm-c/Core.h
Chris Lattner
clattner at apple.com
Mon Jul 20 13:01:14 PDT 2009
On Jul 20, 2009, at 12:45 PM, Bill Wendling wrote:
> On Mon, Jul 20, 2009 at 11:46 AM, Bill Wendling<isanbard at gmail.com>
> wrote:
>> On Mon, Jul 20, 2009 at 11:33 AM, Chris Lattner<clattner at apple.com>
>> wrote:
>>>
>>> On Jul 20, 2009, at 11:22 AM, Bill Wendling wrote:
>>>
>>>> Author: void
>>>> Date: Mon Jul 20 13:22:52 2009
>>>> New Revision: 76447
>>>>
>>>> URL: http://llvm.org/viewvc/llvm-project?rev=76447&view=rev
>>>> Log:
>>>> Put new enum at end of list to avoid changing ABI.
>>>
>>> Just to verify: is there code in the C api's that maps from the C++
>>> numbering to the C numbering?
>>>
> Okay. There isn't a "map" from C APIs to C++ numbering. It does a
> static_cast of the GlobalValue::LinkageTypes to the equivalent C enum
> type.
Ok, instead of doing a static cast, do a switch() on one value and
have each case map over.
> I'm still checking the LTO stuff, but I didn't see any uses of
> LLVMLinkage anywhere other than in VMUtils/Core.cpp.
Right, but does LTO handle privatelinkage? If so, it might need to be
updated to support the new linkage form (maybe not).
-Chris
More information about the llvm-commits
mailing list