summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/ctors_dtors.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-10 01:39:42 +0000
committerChris Lattner <sabre@nondot.org>2009-08-10 01:39:42 +0000
commitcb307a27bf19ac76eeaf16ec6c8a4a698fad88d1 (patch)
treef4431d664c6fd883c1493ad99946243b89c2f9f5 /llvm/test/CodeGen/ARM/ctors_dtors.ll
parent40268af91e4a8cb2b7d1a90abc5453223fc54547 (diff)
downloadbcm5719-llvm-cb307a27bf19ac76eeaf16ec6c8a4a698fad88d1.tar.gz
bcm5719-llvm-cb307a27bf19ac76eeaf16ec6c8a4a698fad88d1.zip
Make the big switch: Change MCSectionMachO to represent a section *semantically*
instead of syntactically as a string. This means that it keeps track of the segment, section, flags, etc directly and asmprints them in the right format. This also includes parsing and validation support for llvm-mc and "attribute(section)", so we should now start getting errors about invalid section attributes from the compiler instead of the assembler on darwin. Still todo: 1) Uniquing of darwin mcsections 2) Move all the Darwin stuff out to MCSectionMachO.[cpp|h] 3) there are a few FIXMEs, for example what is the syntax to get the S_GB_ZEROFILL segment type? llvm-svn: 78547
Diffstat (limited to 'llvm/test/CodeGen/ARM/ctors_dtors.ll')
-rw-r--r--llvm/test/CodeGen/ARM/ctors_dtors.ll8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/ARM/ctors_dtors.ll b/llvm/test/CodeGen/ARM/ctors_dtors.ll
index 8ed98d9c558..714ca612638 100644
--- a/llvm/test/CodeGen/ARM/ctors_dtors.ll
+++ b/llvm/test/CodeGen/ARM/ctors_dtors.ll
@@ -1,9 +1,9 @@
-; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | FileCheck %s -check-prefix=DARWIN
-; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnu | FileCheck %s -check-prefix=ELF
+; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | FileCheck %s -check-prefix=DARWIN
+; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnu | FileCheck %s -check-prefix=ELF
; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnueabi | FileCheck %s -check-prefix=GNUEABI
-; DARWIN: .mod_init_func
-; DARWIN: .mod_term_func
+; DARWIN: .section __DATA,__mod_init_func,mod_init_funcs
+; DARWIN: .section __DATA,__mod_term_func,mod_term_funcs
; ELF: .section .ctors,"aw",%progbits
; ELF: .section .dtors,"aw",%progbits
OpenPOWER on IntegriCloud