llvm.org GIT mirror llvm / f57147f
[IRObjectFile] Handle .weak in RecordStreamer. Differential Revision: http://reviews.llvm.org/D21476 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273027 91177308-0d34-0410-b5e6-96231b3b80d8 Davide Italiano 3 years ago
2 changed file(s) with 11 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
8383
8484 bool RecordStreamer::EmitSymbolAttribute(MCSymbol *Symbol,
8585 MCSymbolAttr Attribute) {
86 if (Attribute == MCSA_Global)
86 if (Attribute == MCSA_Global || Attribute == MCSA_Weak)
8787 markGlobal(*Symbol);
8888 return true;
8989 }
0 ; RUN: llvm-as %s -o=%t1
1 ; RUN: llvm-nm %t1 | FileCheck %s
2
3 ; CHECK: T __libc_blah
4
5 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
6 target triple = "x86_64-unknown-freebsd11.0"
7
8 module asm ".weak __libc_blah"
9 module asm ".equ __libc_blah, blah"