You've already forked linux-packaging-mono
Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
This commit is contained in:
parent
8016999e4d
commit
64ac736ec5
16
external/llvm/test/Transforms/GlobalOpt/compiler-used.ll
vendored
Normal file
16
external/llvm/test/Transforms/GlobalOpt/compiler-used.ll
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
; RUN: opt < %s -globalopt -S | FileCheck %s
|
||||
|
||||
; Test that when all members of llvm.compiler.used are found to be redundant
|
||||
; we delete it instead of crashing.
|
||||
|
||||
define void @foo() {
|
||||
ret void
|
||||
}
|
||||
|
||||
@llvm.used = appending global [1 x i8*] [i8* bitcast (void ()* @foo to i8*)], section "llvm.metadata"
|
||||
|
||||
@llvm.compiler.used = appending global [1 x i8*] [i8* bitcast (void ()* @foo to i8*)], section "llvm.metadata"
|
||||
|
||||
; CHECK-NOT: @llvm.compiler.used
|
||||
; CHECK: @llvm.used = appending global [1 x i8*] [i8* bitcast (void ()* @foo to i8*)], section "llvm.metadata"
|
||||
; CHECK-NOT: @llvm.compiler.used
|
Reference in New Issue
Block a user