llvm/lib
Bill Wendling ef920552d4 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>


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161477 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-08 06:30:30 +00:00
..
Analysis PR13095: Give an inline cost bonus to functions using byval arguments. 2012-08-07 11:13:19 +00:00
Archive Include cstdio in a few place that depended on getting it transitively through StringExtras.h 2012-03-23 11:35:30 +00:00
AsmParser Extend the IL for selecting TLS models (PR9788) 2012-06-23 11:37:03 +00:00
Bitcode Remove tabs. 2012-07-19 00:15:11 +00:00
CodeGen Minor cleanup of defaultDefLatency API 2012-08-08 02:44:11 +00:00
DebugInfo Fix the representation of debug line table in DebugInfo LLVM library, 2012-08-07 11:46:57 +00:00
ExecutionEngine Enable lazy compilation in MCJIT 2012-08-07 18:33:00 +00:00
Linker Move the "findUsedStructTypes" functionality outside of the Module class. 2012-08-03 00:30:35 +00:00
MC Add .pushsection', .popsection', and `.previous' directives to Darwin ASM. 2012-08-08 06:30:30 +00:00
Object Reverting r 160419. 2012-07-19 21:43:55 +00:00
Support Add support for the OpenBSD for Bitrig. 2012-08-06 20:52:18 +00:00
TableGen TableGen: Allow use of #NAME# outside of 'def' names. 2012-08-02 18:46:42 +00:00
Target Added MispredictPenalty to SchedMachineModel. 2012-08-08 02:44:16 +00:00
Transforms isAllocLikeFn is allowed to return true for functions which read memory; make 2012-08-08 02:17:32 +00:00
VMCore The dominance computation already has logic for computing if an edge dominates 2012-08-07 17:30:46 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile