mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 05:32:25 +00:00
4b678bff4e
No change in this commit, but clang was changed to also produce trivial comdats when needed. Original message: Don't create new comdats in CodeGen. This patch stops the implicit creation of comdats during codegen. Clang now sets the comdat explicitly when it is required. With this patch clang and gcc now produce the same result in pr19848. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226467 91177308-0d34-0410-b5e6-96231b3b80d8
26 lines
456 B
LLVM
26 lines
456 B
LLVM
; RUN: llc < %s -mtriple=arm-unknown-linux-gnueabi | FileCheck %s
|
|
|
|
; CHECK: .text
|
|
; CHECK: .globl test1
|
|
; CHECK: .type test1,%function
|
|
define void @test1() {
|
|
entry:
|
|
ret void
|
|
}
|
|
|
|
; CHECK: .section .test2,"ax",%progbits
|
|
; CHECK: .globl test2
|
|
; CHECK: .type test2,%function
|
|
define void @test2() section ".test2" {
|
|
entry:
|
|
ret void
|
|
}
|
|
|
|
; CHECK: .text
|
|
; CHECK: .weak test3
|
|
; CHECK: .type test3,%function
|
|
define linkonce_odr void @test3() {
|
|
entry:
|
|
ret void
|
|
}
|