mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
abf7854d05
This new IR facility allows us to represent the object-file semantic of a COMDAT group. COMDATs allow us to tie together sections and make the inclusion of one dependent on another. This is required to implement features like MS ABI VFTables and optimizing away certain kinds of initialization in C++. This functionality is only representable in COFF and ELF, Mach-O has no similar mechanism. Differential Revision: http://reviews.llvm.org/D4178 llvm-svn: 211920
12 lines
299 B
LLVM
12 lines
299 B
LLVM
; RUN: llc -mtriple x86_64-pc-linux-gnu < %s | FileCheck %s
|
|
|
|
$f = comdat any
|
|
@v = global i32 0, comdat $f
|
|
define void @f() comdat $f {
|
|
ret void
|
|
}
|
|
; CHECK: .section .text.f,"axG",@progbits,f,comdat
|
|
; CHECK: .globl f
|
|
; CHECK: .section .bss.v,"aGw",@nobits,f,comdat
|
|
; CHECK: .globl v
|