diff options
author | Adrian Prantl <aprantl@apple.com> | 2017-07-18 23:58:34 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2017-07-18 23:58:34 +0000 |
commit | 567034c3127eade5ba521dbe549a5e46365d6502 (patch) | |
tree | 4ea3a3399e9d1d8ab84edd47573882dd77498dbb /test/Modules | |
parent | e3d7c4c2aa532933c6d5ae473548a434a02a06a2 (diff) |
Debug Info: Set the MainFileName when generating -gmodules debug info for PCM.
Previously it was uninitialized and thus always defaulted to "<stdin>".
This is mostly a cosmetic change that helps making the debug info more readable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308397 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Modules')
-rw-r--r-- | test/Modules/ModuleDebugInfo.m | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/Modules/ModuleDebugInfo.m b/test/Modules/ModuleDebugInfo.m index d1a0e8d5e8..9289abe080 100644 --- a/test/Modules/ModuleDebugInfo.m +++ b/test/Modules/ModuleDebugInfo.m @@ -23,8 +23,10 @@ @import DebugObjC; #endif -// CHECK: distinct !DICompileUnit(language: DW_LANG_ObjC -// CHECK-SAME: isOptimized: false, +// CHECK: distinct !DICompileUnit(language: DW_LANG_ObjC, file: ![[FILE:[0-9]+]], +// CHECK-SAME: isOptimized: false + +// CHECK: ![[FILE]] = !DIFile(filename: "{{DebugObjC|.*DebugObjC.h}}" // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, // CHECK-SAME: scope: ![[MODULE:[0-9]+]], |