llvm-mirror/test
Bill Wendling 33bd6a2d6c Add .pushsection', .popsection', and `.previous' directives to Darwin ASM.
There are situations where inline ASM may want to change the section -- for
instance, to create a variable in the .data section. However, it cannot do this
without (potentially) restoring to the wrong section. E.g.:

  asm volatile (".section __DATA, __data\n\t"
                ".globl _fnord\n\t"
                "_fnord: .quad 1f\n\t"
                ".text\n\t"
                "1:" :::);

This may be wrong if this is inlined into a function that has a "section"
attribute. The user should use `.pushsection' and `.popsection' here instead.

The addition of `.previous' is added for completeness.
<rdar://problem/12048387>

llvm-svn: 161477
2012-08-08 06:30:30 +00:00
..
Analysis Stay rational; don't assert trying to take the square root of a negative value. 2012-08-01 09:14:36 +00:00
Archive
Assembler
Bindings/Ocaml
Bitcode More replacing of target-dependent intrinsics with target-indepdent 2012-07-18 00:02:16 +00:00
BugPoint
CodeGen X86: enable CSE between CMP and SUB 2012-08-08 00:51:41 +00:00
DebugInfo Fix the representation of debug line table in DebugInfo LLVM library, 2012-08-07 11:46:57 +00:00
ExecutionEngine
Feature
Instrumentation revert r160742: it's breaking CMake build 2012-07-25 18:49:28 +00:00
Integer
Linker
MC Add .pushsection', .popsection', and `.previous' directives to Darwin ASM. 2012-08-08 06:30:30 +00:00
Object Move test yaml files under Inputs until they are converted to be the actual 2012-08-02 21:52:49 +00:00
Other
Scripts
TableGen
Transforms isAllocLikeFn is allowed to return true for functions which read memory; make 2012-08-08 02:17:32 +00:00
Unit
Verifier Fix a typo (the the => the) 2012-07-23 08:51:15 +00:00
YAMLParser
CMakeLists.txt [CMake] Add yaml2obj to check-llvm. 2012-08-03 00:45:32 +00:00
lit.cfg
lit.site.cfg.in
Makefile fix 'make check' when ocamlopt returns the compiler path with CFLAGS (and there's a cflag with a = char) 2012-08-01 15:50:34 +00:00
Makefile.tests
TestRunner.sh