mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-06 03:38:24 +00:00
28b33112e2
Summary: For correct handling of alias to nameless function, we need to be able to refer them through a GUID in the summary. Here we name them using a hash of the non-private global names in the module. Reviewers: tejohnson Subscribers: joker.eph, llvm-commits Differential Revision: http://reviews.llvm.org/D18883 From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266132 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
564 B
LLVM
28 lines
564 B
LLVM
; RUN: opt -S -name-anon-functions < %s | FileCheck %s
|
|
|
|
|
|
; foo contribute to the unique hash for the module
|
|
define void @foo() {
|
|
ret void
|
|
}
|
|
|
|
; bar is internal, and does not contribute to the unique hash for the module
|
|
define internal void @bar() {
|
|
ret void
|
|
}
|
|
|
|
; CHECK: define void @anon.acbd18db4cc2f85cedef654fccc4a4d8.0()
|
|
; CHECK: define void @anon.acbd18db4cc2f85cedef654fccc4a4d8.1()
|
|
; CHECK: define void @anon.acbd18db4cc2f85cedef654fccc4a4d8.2()
|
|
|
|
define void @0() {
|
|
ret void
|
|
}
|
|
define void @1() {
|
|
ret void
|
|
}
|
|
define void @2() {
|
|
ret void
|
|
}
|
|
|