[cfe-dev] CodeGenModule::GetAddrOfConstantString(const StringLiteral *Literal)
David Chisnall
csdavec at swan.ac.uk
Wed Mar 23 03:47:02 PDT 2011
Hello the list,
Is there a reason why this function exists?
CodeGenModule::GetAddrOfConstantString(const StringLiteral *Literal);
Aside from the confusing and misleading name (it emits an Objective-C string, in case you couldn't guess that from the name), it seems to be a layering violation since it's in CodeGenModule but implements behaviour specific to the Mac Objective-C runtimes (and isn't actually called anywhere outside CGObjCMac.cpp).
David
More information about the cfe-dev
mailing list