summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/RecordStreamer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Object/RecordStreamer.cpp')
-rw-r--r--llvm/lib/Object/RecordStreamer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/RecordStreamer.cpp b/llvm/lib/Object/RecordStreamer.cpp
index 42dbd3e0c2d..74d57dee2da 100644
--- a/llvm/lib/Object/RecordStreamer.cpp
+++ b/llvm/lib/Object/RecordStreamer.cpp
@@ -84,7 +84,7 @@ void RecordStreamer::EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) {
bool RecordStreamer::EmitSymbolAttribute(MCSymbol *Symbol,
MCSymbolAttr Attribute) {
- if (Attribute == MCSA_Global)
+ if (Attribute == MCSA_Global || Attribute == MCSA_Weak)
markGlobal(*Symbol);
return true;
}
OpenPOWER on IntegriCloud