Refactoring ObjC Next's runtime classes in preparation for

the new ObjC's abi.

llvm-svn: 62721
This commit is contained in:
Fariborz Jahanian
2009-01-21 22:04:16 +00:00
parent d776b6e51d
commit 279eda6275
5 changed files with 134 additions and 76 deletions

View File

@@ -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);
}