OSDN Git Service

Make the recent COFF debug info tests more readable
authorTimur Iskhodzhanov <timurrrr@google.com>
Thu, 27 Mar 2014 08:46:44 +0000 (08:46 +0000)
committerTimur Iskhodzhanov <timurrrr@google.com>
Thu, 27 Mar 2014 08:46:44 +0000 (08:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204902 91177308-0d34-0410-b5e6-96231b3b80d8

test/DebugInfo/COFF/asan-module-ctor.ll [moved from test/DebugInfo/COFF/asan.ll with 100% similarity]
test/DebugInfo/COFF/asan-module-without-functions.ll [moved from test/DebugInfo/COFF/asan2.ll with 94% similarity]
test/DebugInfo/COFF/tail-call-without-lexical-scopes.ll [moved from test/DebugInfo/COFF/pr19239.ll with 96% similarity]

similarity index 94%
rename from test/DebugInfo/COFF/asan2.ll
rename to test/DebugInfo/COFF/asan-module-without-functions.ll
index d1f1908..419faa0 100644 (file)
@@ -4,8 +4,9 @@
 ; -fsanitize=address
 ; D:\asan.c:
 ; 1 unsigned char c = 42;
-
-; Just make sure we don't try to emit the line table.
+;
+; This file defines no functions, so just make sure we don't try to emit
+; the line table for functions of zero size.
 ; X86-NOT: .section        .debug$S,"rn"
 
 ; ModuleID = 'asan.c'
similarity index 96%
rename from test/DebugInfo/COFF/pr19239.ll
rename to test/DebugInfo/COFF/tail-call-without-lexical-scopes.ll
index 3c0de6a..b0b87a4 100644 (file)
@@ -11,6 +11,9 @@
 ; 7 void spam(void) {
 ; 8   bar(42);
 ; 9 }
+;
+; The bar function happens to have no lexical scopes, yet it has one instruction
+; with debug information available.
 
 ; X86-LABEL: {{^}}"?bar@@YAXHZZ":
 ; X86-NEXT: # BB