[cfe-dev] What is the advantage of declaring a function (again) LIBBUILTIN ?

Nat! via cfe-dev cfe-dev at lists.llvm.org
Wed Apr 6 05:48:13 PDT 2016

In Builtins.def I see quite a few functions, which seem to "just" 
duplicate what is supposed to be in a header anyway.

An example is "NSLogv":

// void NSLogv(NSString *fmt, va_list args)
LIBBUILTIN(NSLogv, "vGa", "fP:0:", "Foundation/NSObjCRuntime.h", OBJC_LANG)

and it's declared in Foundation/NSObjCRuntime as

FOUNDATION_EXPORT void NSLogv(NSString *format, va_list args) 

Just the same. I don't get the benefit by this duplication.


More information about the cfe-dev mailing list