mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
stripped .bc file, it didn't make any attempt to try to reuse anonymous types. This causes an amazing type explosion due to types getting duplicated everywhere they are referenced and other problems. This also caused correctness issues, because opaque types are unique for each time they are uttered in the file. This means that stripping a .bc file could produce a .ll file that could not be assembled (e.g. 2009-02-28-StripOpaqueName.ll). This patch fixes both of these issues. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65738 91177308-0d34-0410-b5e6-96231b3b80d8
7 lines
192 B
LLVM
7 lines
192 B
LLVM
; RUN: llvm-as < %s | opt -strip | llvm-dis | llvm-as | llvm-dis
|
|
|
|
; Stripping the name from A should not break references to it.
|
|
%A = type opaque
|
|
@g1 = external global %A
|
|
@g2 = global %A* @g1
|