Refactoring ObjC Next's runtime classes in preparation for
the new ObjC's abi.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62721 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp
index 7856b07..79f00de 100644
--- a/lib/CodeGen/CodeGenModule.cpp
+++ b/lib/CodeGen/CodeGenModule.cpp
@@ -39,7 +39,8 @@
if (Features.ObjC1) {
if (Features.NeXTRuntime) {
- Runtime = CreateMacObjCRuntime(*this);
+ Runtime = Features.ObjCModernABI ? CreateMacModernObjCRuntime(*this)
+ : CreateMacObjCRuntime(*this);
} else {
Runtime = CreateGNUObjCRuntime(*this);
}