From 279eda627554755119d3a5efa79c7d97f6dbdfb6 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Wed, 21 Jan 2009 22:04:16 +0000 Subject: Refactoring ObjC Next's runtime classes in preparation for the new ObjC's abi. llvm-svn: 62721 --- clang/lib/CodeGen/CodeGenModule.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 7856b076d2dc..79f00dec9771 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); } -- cgit v1.2.3