summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-01-21 22:04:16 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-01-21 22:04:16 +0000
commit279eda627554755119d3a5efa79c7d97f6dbdfb6 (patch)
tree7eababc75151c473c3a75a5a3cff9458e2e8621e /clang/lib/CodeGen/CodeGenModule.cpp
parentd776b6e51d38fb8904f9770fed88aa83d9bf968d (diff)
downloadbcm5719-llvm-279eda627554755119d3a5efa79c7d97f6dbdfb6.tar.gz
bcm5719-llvm-279eda627554755119d3a5efa79c7d97f6dbdfb6.zip
Refactoring ObjC Next's runtime classes in preparation for
the new ObjC's abi. llvm-svn: 62721
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 7856b076d2d..79f00dec977 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -39,7 +39,8 @@ CodeGenModule::CodeGenModule(ASTContext &C, const LangOptions &LO,
if (Features.ObjC1) {
if (Features.NeXTRuntime) {
- Runtime = CreateMacObjCRuntime(*this);
+ Runtime = Features.ObjCModernABI ? CreateMacModernObjCRuntime(*this)
+ : CreateMacObjCRuntime(*this);
} else {
Runtime = CreateGNUObjCRuntime(*this);
}
OpenPOWER on IntegriCloud