diff options
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
| -rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 5ecc30eb4ea2..cf504a7c2a0c 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/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(); | 
