diff options
| -rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 2 | ||||
| -rw-r--r-- | clang/test/CodeGenObjC/debug-info.m | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index c871b7bcd5f..382b1866480 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -519,7 +519,7 @@ llvm::DIType CGDebugInfo::CreateType(const ObjCInterfaceType *Ty, unsigned Line = PLoc.isInvalid() ? 0 : PLoc.getLine(); - unsigned RuntimeLang = DefUnit.getRunTimeVersion(); + unsigned RuntimeLang = DefUnit.getLanguage(); // To handle recursive interface, we // first generate a debug descriptor for the struct as a forward declaration. diff --git a/clang/test/CodeGenObjC/debug-info.m b/clang/test/CodeGenObjC/debug-info.m index c4b94261457..9c461ba68fb 100644 --- a/clang/test/CodeGenObjC/debug-info.m +++ b/clang/test/CodeGenObjC/debug-info.m @@ -2,9 +2,17 @@ // RUN: grep '@.str3 = internal constant \[8 x i8\] c"-\[A m0\]\\00"' %t && // RUN: grep '@.str4 = internal constant \[9 x i8\] c"\\01-\[A m0\]\\00"' %t && // RUN: grep '@llvm.dbg.subprogram = .* @.str3, .* @.str3, .* @.str4,' %t && +// RUN: grep '@llvm.dbg.composite.* = .* i32 15, i64 0, i64 8, .* i32 16' %t && // RUN: true + + + + + + + @interface A @end -@implementation A +@implementation A // Line 15 -(void) m0 {} @end |

