Created __builtin___NSStringMakeConstantString() builtin, which generates constant Objective-C strings.

llvm-svn: 94274
This commit is contained in:
David Chisnall
2010-01-23 02:40:42 +00:00
parent 4c0df3dc1d
commit 481e3a87fe
10 changed files with 50 additions and 20 deletions

View File

@@ -67,6 +67,15 @@ CodeGenModule::~CodeGenModule() {
delete DebugInfo;
}
void CodeGenModule::createObjCRuntime() {
if (!Features.NeXTRuntime)
Runtime = CreateGNUObjCRuntime(*this);
else if (Features.ObjCNonFragileABI)
Runtime = CreateMacNonFragileABIObjCRuntime(*this);
else
Runtime = CreateMacObjCRuntime(*this);
}
void CodeGenModule::Release() {
EmitDeferred();
EmitCXXGlobalInitFunc();