[llvm] r215052 - DebugInfo: Make a test more portable

Justin Bogner mail at justinbogner.com
Wed Aug 6 20:47:28 PDT 2014


Author: bogner
Date: Wed Aug  6 22:47:28 2014
New Revision: 215052

URL: http://llvm.org/viewvc/llvm-project?rev=215052&view=rev
Log:
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.

Modified:
    llvm/trunk/test/DebugInfo/cu-line-tables.ll

Modified: llvm/trunk/test/DebugInfo/cu-line-tables.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/cu-line-tables.ll?rev=215052&r1=215051&r2=215052&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/cu-line-tables.ll (original)
+++ llvm/trunk/test/DebugInfo/cu-line-tables.ll Wed Aug  6 22:47:28 2014
@@ -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
 }





More information about the llvm-commits mailing list