[lld] r293970 - [ThinLTO] Add an auto-hide feature

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 2 16:32:38 PST 2017


Author: mehdi_amini
Date: Thu Feb  2 18:32:38 2017
New Revision: 293970

URL: http://llvm.org/viewvc/llvm-project?rev=293970&view=rev
Log:
[ThinLTO] Add an auto-hide feature

When a symbol is not exported outside of the
DSO, it is can be hidden. Usually we try to internalize
as much as possible, but it is not always possible, for
instance a symbol can be referenced outside of the LTO
unit, or there can be cross-module reference in ThinLTO.

This is a recommit of r293912 after fixing build failures,
and a recommit of r293918 after fixing LLD tests.

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

Modified:
    lld/trunk/test/ELF/lto/thin-archivecollision.ll

Modified: lld/trunk/test/ELF/lto/thin-archivecollision.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/thin-archivecollision.ll?rev=293970&r1=293969&r2=293970&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/thin-archivecollision.ll (original)
+++ lld/trunk/test/ELF/lto/thin-archivecollision.ll Thu Feb  2 18:32:38 2017
@@ -12,8 +12,8 @@
 ; RUN: llvm-nm %t | FileCheck %s
 
 ; CHECK: T _start
-; CHECK: T blah
-; CHECK: T foo
+; CHECK: t blah
+; CHECK: t foo
 
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-scei-ps4"




More information about the llvm-commits mailing list