mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
e7f0383a82
This reland includes a fix for the LowerTypeTests pass so that it looks past aliases when determining which type identifiers are live. Differential Revision: https://reviews.llvm.org/D37842 llvm-svn: 313229
21 lines
555 B
LLVM
21 lines
555 B
LLVM
; RUN: opt -module-summary -o %t %s
|
|
; RUN: opt -module-summary -o %t2 %S/Inputs/dead-strip-alias.ll
|
|
; RUN: llvm-lto2 run %t -r %t,main,px -r %t,alias,p -r %t,external, \
|
|
; RUN: %t2 -r %t2,external,p \
|
|
; RUN: -save-temps -o %t3
|
|
; RUN: llvm-nm %t3.1 | FileCheck %s
|
|
|
|
; CHECK: D external
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
@alias = alias i8*, i8** @internal
|
|
|
|
@internal = internal global i8* @external
|
|
@external = external global i8
|
|
|
|
define i8** @main() {
|
|
ret i8** @alias
|
|
}
|