diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-07-15 21:22:00 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-07-15 21:22:00 +0000 |
| commit | 60b131654b2f407a937c5ed505ea1c8fd6a33512 (patch) | |
| tree | 5a2c8cba8b952420c978cc5112334cd5f4284e0d /llvm/test/CodeGen/X86/global-sections.ll | |
| parent | c2b3675f8b41b7bc80d38507b4b76bf0d563d057 (diff) | |
| download | bcm5719-llvm-60b131654b2f407a937c5ed505ea1c8fd6a33512.tar.gz bcm5719-llvm-60b131654b2f407a937c5ed505ea1c8fd6a33512.zip | |
fix the definitions of ConstTextCoalSection/ConstDataCoalSection
to keep "Text" in sync with the "pure instructions" section attribute.
Lack of this attribute was preventing the assembler from emitting
multibyte noops instructions for templates (and inlines, and other
coalesced stuff) and was causing the assembler to mismatch .o files.
This fixes rdar://8018335
llvm-svn: 108461
Diffstat (limited to 'llvm/test/CodeGen/X86/global-sections.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/global-sections.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/global-sections.ll b/llvm/test/CodeGen/X86/global-sections.ll index 6d211913b01..2d8f429eff6 100644 --- a/llvm/test/CodeGen/X86/global-sections.ll +++ b/llvm/test/CodeGen/X86/global-sections.ll @@ -20,7 +20,7 @@ ; TODO: linux drops this into .rodata, we drop it into ".gnu.linkonce.r.G2" -; DARWIN: .section __TEXT,__const_coal,coalesced +; DARWIN: .section __TEXT,__const_coal,coalesced,pure_instructions ; DARWIN: _G2: ; DARWIN: .long 42 @@ -85,7 +85,7 @@ ; LINUX: .byte 1 ; LINUX: .size G6, 1 -; DARWIN: .section __TEXT,__const_coal,coalesced +; DARWIN: .section __TEXT,__const_coal,coalesced,pure_instructions ; DARWIN: .globl _G6 ; DARWIN: .weak_definition _G6 ; DARWIN:_G6: |

