diff options
author | Eric Christopher <echristo@apple.com> | 2012-04-11 05:56:05 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-04-11 05:56:05 +0000 |
commit | 3d19de9910ab7fb9497933c2136d253295c761b2 (patch) | |
tree | c2e0e63f7e58af21b8b02ac13e03184a7c7ea47b /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 48346c1cd9ba66f1cc8e8e051ecebaa42303eb3d (diff) | |
download | bcm5719-llvm-3d19de9910ab7fb9497933c2136d253295c761b2.tar.gz bcm5719-llvm-3d19de9910ab7fb9497933c2136d253295c761b2.zip |
Enable debug info for objective c implementations that may not have
an explicit instance variable.
rdar://10590352
llvm-svn: 154481
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index c9f1066032d..c0ccf4de4c9 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -2535,6 +2535,11 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) { EmitObjCPropertyImplementations(OMD); EmitObjCIvarInitializations(OMD); ObjCRuntime->GenerateClass(OMD); + // Emit global variable debug information. + if (CGDebugInfo *DI = getModuleDebugInfo()) + DI->getOrCreateInterfaceType(getContext().getObjCInterfaceType(OMD->getClassInterface()), + OMD->getLocation()); + break; } case Decl::ObjCMethod: { |