mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
DWARF Type Units: Avoid emitting type units under fission if the type requires an address.
Since there's no way to ensure the type unit in the .dwo and the type unit skeleton in the .o are correlated, this cannot work. This implementation is a bit inefficient for a few reasons, called out in comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207323 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -17,6 +17,7 @@ using namespace llvm;
|
||||
class MCExpr;
|
||||
|
||||
unsigned AddressPool::getIndex(const MCSymbol *Sym, bool TLS) {
|
||||
HasBeenUsed = true;
|
||||
auto IterBool =
|
||||
Pool.insert(std::make_pair(Sym, AddressPoolEntry(Pool.size(), TLS)));
|
||||
return IterBool.first->second.Number;
|
||||
|
Reference in New Issue
Block a user