mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-17 01:48:24 +00:00
a2197f8f51
We had two code paths. One would create names like "foo.1" and the other names like "foo1". For globals it is important to use "foo.1" to help C++ name demangling. For locals there is no strong reason to go one way or the other so I kept the most common mangling (foo1). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253804 91177308-0d34-0410-b5e6-96231b3b80d8
32 lines
813 B
LLVM
32 lines
813 B
LLVM
; RUN: llvm-split -o %t %s
|
|
; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=CHECK0 %s
|
|
; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=CHECK1 %s
|
|
|
|
; CHECK0: declare hidden void @__llvmsplit_unnamed()
|
|
; CHECK1: define hidden void @__llvmsplit_unnamed()
|
|
define internal void @0() {
|
|
; CHECK1: call void @foo()
|
|
call void @foo()
|
|
ret void
|
|
}
|
|
|
|
; CHECK0: declare hidden void @__llvmsplit_unnamed.1()
|
|
; CHECK1: define hidden void @__llvmsplit_unnamed.1()
|
|
define internal void @1() {
|
|
; CHECK1: call void @foo()
|
|
; CHECK1: call void @foo()
|
|
call void @foo()
|
|
call void @foo()
|
|
ret void
|
|
}
|
|
|
|
; CHECK0: define void @foo()
|
|
; CHECK1: declare void @foo()
|
|
define void @foo() {
|
|
; CHECK0: call void @__llvmsplit_unnamed.1()
|
|
; CHECK0: call void @__llvmsplit_unnamed()
|
|
call void @1()
|
|
call void @0()
|
|
ret void
|
|
}
|