commit | f9721ba5f1ad9cb0818e2a90079cf9336586f5c5 | [log] [tgz] |
---|---|---|
author | Mehdi Amini <mehdi.amini@apple.com> | Wed Aug 03 03:51:42 2016 +0000 |
committer | Mehdi Amini <mehdi.amini@apple.com> | Wed Aug 03 03:51:42 2016 +0000 |
tree | 8e7a9183f9baee45c2c126c0aa3b3dd923c3eaff | |
parent | dcaec77936095744ad9b0f8a0948221d495620c1 [diff] [blame] |
RecordStreamer: handle inline asm "lazy_reference" and mark symbols as "used" llvm-svn: 277564
diff --git a/llvm/lib/Object/RecordStreamer.cpp b/llvm/lib/Object/RecordStreamer.cpp index f03bd5e..cd3964a 100644 --- a/llvm/lib/Object/RecordStreamer.cpp +++ b/llvm/lib/Object/RecordStreamer.cpp
@@ -92,6 +92,8 @@ MCSymbolAttr Attribute) { if (Attribute == MCSA_Global || Attribute == MCSA_Weak) markGlobal(*Symbol, Attribute); + if (Attribute == MCSA_LazyReference) + markUsed(*Symbol); return true; }