From 45dfc707ee0f2051c0d0eab33368d9ae7bb57518 Mon Sep 17 00:00:00 2001 From: Timur Iskhodzhanov Date: Thu, 27 Mar 2014 08:46:44 +0000 Subject: [PATCH] Make the recent COFF debug info tests more readable git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204902 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/DebugInfo/COFF/{asan.ll => asan-module-ctor.ll} | 0 .../COFF/{asan2.ll => asan-module-without-functions.ll} | 5 +++-- .../COFF/{pr19239.ll => tail-call-without-lexical-scopes.ll} | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) rename test/DebugInfo/COFF/{asan.ll => asan-module-ctor.ll} (100%) rename test/DebugInfo/COFF/{asan2.ll => asan-module-without-functions.ll} (94%) rename test/DebugInfo/COFF/{pr19239.ll => tail-call-without-lexical-scopes.ll} (96%) diff --git a/test/DebugInfo/COFF/asan.ll b/test/DebugInfo/COFF/asan-module-ctor.ll similarity index 100% rename from test/DebugInfo/COFF/asan.ll rename to test/DebugInfo/COFF/asan-module-ctor.ll diff --git a/test/DebugInfo/COFF/asan2.ll b/test/DebugInfo/COFF/asan-module-without-functions.ll similarity index 94% rename from test/DebugInfo/COFF/asan2.ll rename to test/DebugInfo/COFF/asan-module-without-functions.ll index d1f19085ece..419faa0e0f3 100644 --- a/test/DebugInfo/COFF/asan2.ll +++ b/test/DebugInfo/COFF/asan-module-without-functions.ll @@ -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' diff --git a/test/DebugInfo/COFF/pr19239.ll b/test/DebugInfo/COFF/tail-call-without-lexical-scopes.ll similarity index 96% rename from test/DebugInfo/COFF/pr19239.ll rename to test/DebugInfo/COFF/tail-call-without-lexical-scopes.ll index 3c0de6a9a02..b0b87a4b6f9 100644 --- a/test/DebugInfo/COFF/pr19239.ll +++ b/test/DebugInfo/COFF/tail-call-without-lexical-scopes.ll @@ -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 -- 2.34.1