mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 05:32:25 +00:00
fe45fd084d
(except functions marked always_inline). Functions with 'optnone' must also have 'noinline' so they don't get inlined into any other function. Based on work by Andrea Di Biagio. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195046 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
255 B
LLVM
13 lines
255 B
LLVM
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
|
|
|
; Check for the presence of attribute optnone in the disassembly.
|
|
|
|
; CHECK: @foo() #0
|
|
define void @foo() #0 {
|
|
ret void
|
|
}
|
|
|
|
; CHECK: attributes #0 = { noinline optnone }
|
|
attributes #0 = { optnone noinline }
|
|
|