mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 17:29:19 +00:00
This changes the order in which different types are passed to get, but one order is not inherently better than the other. The main motivation is that this simplifies linkDefinedTypeBodies now that it is only linking "real" opaque types. It is also means that we only have to call it once and that we don't need getImpl. A small change in behavior is that we don't copy type names when resolving opaque types. This is an improvement IMHO, but it can be added back if desired. A test is included with the new behavior. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222764 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
232 B
LLVM
14 lines
232 B
LLVM
; RUN: llvm-link -S %s %p/Inputs/type-unique-name.ll | FileCheck %s
|
|
|
|
; Test that we keep the type name
|
|
; CHECK: %abc = type { i8 }
|
|
|
|
%abc = type opaque
|
|
|
|
declare %abc* @f()
|
|
|
|
define %abc* @g() {
|
|
%x = call %abc* @f()
|
|
ret %abc* %x
|
|
}
|