mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
639c882cbe
COFF section flags are not idempotent: 'rd' will make a read-write section because 'd' implies write 'dr' will make a read-only section because 'r' disables write llvm-svn: 228490
12 lines
311 B
LLVM
12 lines
311 B
LLVM
; RUN: llc -mtriple x86_64-pc-windows-msvc < %s | FileCheck %s
|
|
|
|
define void @f() {
|
|
ret void
|
|
}
|
|
|
|
@ptr = constant void ()* @f, section ".CRT$XLB", align 8
|
|
; CHECK: .section .CRT$XLB,"dr"
|
|
|
|
@weak_array = weak_odr unnamed_addr constant [1 x i8*] [i8* bitcast (void ()* @f to i8*)]
|
|
; CHECK: .section .rdata,"dr"
|