mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
If we're not producing DWARF accel tables, don't waste memory
keeping track of those entries. llvm-svn: 200572
This commit is contained in:
parent
861178d373
commit
7b5cad010e
@ -1016,18 +1016,21 @@ void DwarfUnit::addType(DIE *Entity, DIType Ty, dwarf::Attribute Attribute) {
|
||||
// to reference is in the string table. We do this since the names we
|
||||
// add may not only be identical to the names in the DIE.
|
||||
void DwarfUnit::addAccelName(StringRef Name, const DIE *Die) {
|
||||
if (!DD->useDwarfAccelTables()) return;
|
||||
DU->getStringPoolEntry(Name);
|
||||
std::vector<const DIE *> &DIEs = AccelNames[Name];
|
||||
DIEs.push_back(Die);
|
||||
}
|
||||
|
||||
void DwarfUnit::addAccelObjC(StringRef Name, const DIE *Die) {
|
||||
if (!DD->useDwarfAccelTables()) return;
|
||||
DU->getStringPoolEntry(Name);
|
||||
std::vector<const DIE *> &DIEs = AccelObjC[Name];
|
||||
DIEs.push_back(Die);
|
||||
}
|
||||
|
||||
void DwarfUnit::addAccelNamespace(StringRef Name, const DIE *Die) {
|
||||
if (!DD->useDwarfAccelTables()) return;
|
||||
DU->getStringPoolEntry(Name);
|
||||
std::vector<const DIE *> &DIEs = AccelNamespace[Name];
|
||||
DIEs.push_back(Die);
|
||||
@ -1035,6 +1038,7 @@ void DwarfUnit::addAccelNamespace(StringRef Name, const DIE *Die) {
|
||||
|
||||
void DwarfUnit::addAccelType(StringRef Name,
|
||||
std::pair<const DIE *, unsigned> Die) {
|
||||
if (!DD->useDwarfAccelTables()) return;
|
||||
DU->getStringPoolEntry(Name);
|
||||
std::vector<std::pair<const DIE *, unsigned> > &DIEs = AccelTypes[Name];
|
||||
DIEs.push_back(Die);
|
||||
|
Loading…
x
Reference in New Issue
Block a user