summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2010-01-23 02:40:42 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2010-01-23 02:40:42 +0000
commit481e3a87febe1c711a8de7a41904a1588a558218 (patch)
tree03e92cce4745fc570be627995f4510e680a482d6 /clang/lib/CodeGen/CodeGenModule.cpp
parent4c0df3dc1dd323945384e855345d4bbdcde4d402 (diff)
downloadbcm5719-llvm-481e3a87febe1c711a8de7a41904a1588a558218.tar.gz
bcm5719-llvm-481e3a87febe1c711a8de7a41904a1588a558218.zip
Created __builtin___NSStringMakeConstantString() builtin, which generates constant Objective-C strings.
llvm-svn: 94274
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 5ecc30eb4ea..cf504a7c2a0 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -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();
OpenPOWER on IntegriCloud