forked from OSchip/llvm-project
parent
16353871c3
commit
5f1a001071
|
@ -257,9 +257,7 @@ unsigned DwarfFile::getStringPoolIndex(StringRef Str) {
|
|||
|
||||
unsigned DwarfFile::getAddrPoolIndex(const MCSymbol *Sym, bool TLS) {
|
||||
std::pair<AddrPool::iterator, bool> P = AddressPool.insert(
|
||||
std::make_pair(Sym, AddressPoolEntry(NextAddrPoolNumber, TLS)));
|
||||
if (P.second)
|
||||
++NextAddrPoolNumber;
|
||||
std::make_pair(Sym, AddressPoolEntry(AddressPool.size(), TLS)));
|
||||
return P.first->second.Number;
|
||||
}
|
||||
|
||||
|
|
|
@ -166,12 +166,10 @@ class DwarfFile {
|
|||
// references.
|
||||
typedef DenseMap<const MCSymbol *, AddressPoolEntry> AddrPool;
|
||||
AddrPool AddressPool;
|
||||
unsigned NextAddrPoolNumber;
|
||||
|
||||
public:
|
||||
DwarfFile(AsmPrinter *AP, const char *Pref, BumpPtrAllocator &DA)
|
||||
: Asm(AP), StringPool(DA), NextStringPoolNumber(0), StringPref(Pref),
|
||||
AddressPool(), NextAddrPoolNumber(0) {}
|
||||
: Asm(AP), StringPool(DA), NextStringPoolNumber(0), StringPref(Pref) {}
|
||||
|
||||
~DwarfFile();
|
||||
|
||||
|
|
Loading…
Reference in New Issue