From 971bf283f8c9759cbbc2a28944af9637e1a65748 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Thu, 7 Aug 2014 03:47:28 +0000 Subject: [PATCH] DebugInfo: Make a test more portable mach-o doesn't like sections without segments, and elf is perfectly happy with commas in section names, so use a Darwin-like section name. Suggestion by Eric Christopher. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215052 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/DebugInfo/cu-line-tables.ll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/DebugInfo/cu-line-tables.ll b/test/DebugInfo/cu-line-tables.ll index 5762f039c9a..f81b01e54cb 100644 --- a/test/DebugInfo/cu-line-tables.ll +++ b/test/DebugInfo/cu-line-tables.ll @@ -3,7 +3,7 @@ ; Generated from the following source compiled with clang -gmlt: ; void f1(void) {} -; void f2(void) __attribute__((section("bar"))) {} +; void f2(void) __attribute__((section("__TEXT,__bar"))) {} ; Check that ; * -gmlt ('Emission Kind' of 'LineTablesOnly' in the CU debug info metadata) @@ -36,7 +36,7 @@ entry: } ; Function Attrs: nounwind uwtable -define void @f2() #0 section "bar" { +define void @f2() #0 section "__TEXT,__bar" { entry: ret void, !dbg !12 } -- 2.34.1