[cfe-dev] CFSTR and NSConstantString
fjahanian at apple.com
Fri Jan 22 13:54:25 CST 2010
On Jan 22, 2010, at 11:33 AM, David Chisnall wrote:
> Hello the list,
> We'd like to be able to support CFSTR() with GNUstep emitting
> NSConstantString instances. There are three ways that I can do this:
> 1) Make CodeGenModule::GetAddrOfConstantCFString() check if the gnu
> runtime is being used and call the CGObjCRuntime function to emit
> the string if it is.
> 2) Add a new builtin, __builtin___NSStringMakeConstantString(),
> which behaves exactly like __builtin___CFStringMakeConstantString()
> but emits a new ObjC constant string, rather than a new CF string
> (although, with the Mac runtimes, they will be the same thing anyway).
> 3) Add a new option, like -fcfstrings-as-nsstrings which makes CF
> strings into NSStrings.
> My preference is on the first option, although largely because it's
> the least effort for me. Does anyone have any preferences or
Since 2) has established a precedence, we should probably go with that.
> -- Sent from my IBM 1620
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
More information about the cfe-dev