Files
clang-p2996/llvm/test/tools/gold/X86/Inputs/thinlto_weak_library2.ll
Teresa Johnson 4566c6db87 [ThinLTO] Drop non-prevailing non-ODR weak to declarations
Summary:
Allow non-ODR weak/linkonce non-prevailing copies to be marked
as available_externally in the index. Add support for dropping these to
declarations in the backend.

Reviewers: mehdi_amini, pcc

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D28806

llvm-svn: 292656
2017-01-20 21:54:58 +00:00

21 lines
479 B
LLVM

; ModuleID = 'thinlto_weak_library2.c'
source_filename = "thinlto_weak_library2.c"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: nounwind uwtable
define weak i32 @f() local_unnamed_addr {
entry:
ret i32 2
}
; Function Attrs: nounwind uwtable
define void @test2() local_unnamed_addr {
entry:
tail call i32 (...) @test1()
tail call i32 @f()
ret void
}
declare i32 @test1(...) local_unnamed_addr