From caabe22832c75b2fbfd048f9b6e8969e5c80b070 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 10 Dec 2015 14:19:35 +0000 Subject: Slit lib/Linker in two. A linker normally has two stages: symbol resolution and "moving stuff". In lib/Linker there is the complication of lazy linking some globals, but it was still far more mixed than it needed to. This splits the linker into a lower level IRMover and the linker proper. The IRMover just takes a list of globals to move and a callback that lets the user control what is lazy linked. The main motivation is that now tools/gold (and soon lld) can use their own symbol resolution to instruct IRMover what to do. llvm-svn: 255254 --- llvm/test/tools/gold/X86/drop-linkage.ll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/test/tools') diff --git a/llvm/test/tools/gold/X86/drop-linkage.ll b/llvm/test/tools/gold/X86/drop-linkage.ll index 14d3a96718a..d4c1dd052c7 100644 --- a/llvm/test/tools/gold/X86/drop-linkage.ll +++ b/llvm/test/tools/gold/X86/drop-linkage.ll @@ -11,4 +11,4 @@ define void @foo() { ret void } -; CHECK: declare void @foo(){{$}} +; CHECK: declare extern_weak void @foo(){{$}} -- cgit v1.2.3