diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2016-12-01 02:51:12 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2016-12-01 02:51:12 +0000 |
commit | fb8c2a4a6b9fb72430903677fc1ffc46e27160f4 (patch) | |
tree | be5bfabd477a50fb05dfa7c1d0eb510af1f1e516 /llvm/lib/LTO/LTO.cpp | |
parent | baa4783d310c7a991690795e0fb9b63d4a781003 (diff) | |
download | bcm5719-llvm-fb8c2a4a6b9fb72430903677fc1ffc46e27160f4.tar.gz bcm5719-llvm-fb8c2a4a6b9fb72430903677fc1ffc46e27160f4.zip |
LTO: Remove Symbol::getIRName().
Its only use was in the LTO implementation. Also document
Symbol::getName().
llvm-svn: 288302
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r-- | llvm/lib/LTO/LTO.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index b5339cd61df..4256704f906 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/lib/LTO/LTO.cpp @@ -381,7 +381,10 @@ Error LTO::addRegularLTO(std::unique_ptr<InputFile> Input, // We also record if we see an instance of a common as prevailing, so that // if none is prevailing we can ignore it later. if (Sym.getFlags() & object::BasicSymbolRef::SF_Common) { - auto &CommonRes = RegularLTO.Commons[Sym.getIRName()]; + // FIXME: We should figure out what to do about commons defined by asm. + // For now they aren't reported correctly by ModuleSymbolTable. + assert(GV); + auto &CommonRes = RegularLTO.Commons[GV->getName()]; CommonRes.Size = std::max(CommonRes.Size, Sym.getCommonSize()); CommonRes.Align = std::max(CommonRes.Align, Sym.getCommonAlignment()); CommonRes.Prevailing |= Res.Prevailing; |