forked from OSchip/llvm-project
Migrate addGlobalName to the .cpp file as an intermediate step
to further work. llvm-svn: 191113
This commit is contained in:
parent
0e2d162d1e
commit
9c58f317da
|
@ -843,6 +843,11 @@ void CompileUnit::addType(DIE *Entity, DIType Ty, uint16_t Attribute) {
|
|||
addGlobalType(Ty);
|
||||
}
|
||||
|
||||
/// addGlobalName - Add a new global name to the compile unit.
|
||||
void CompileUnit::addGlobalName(StringRef Name, DIE *Die) {
|
||||
GlobalNames[Name] = Die;
|
||||
}
|
||||
|
||||
/// addGlobalType - Add a new global type to the compile unit.
|
||||
///
|
||||
void CompileUnit::addGlobalType(DIType Ty) {
|
||||
|
|
|
@ -129,13 +129,12 @@ public:
|
|||
|
||||
/// addGlobalName - Add a new global entity to the compile unit.
|
||||
///
|
||||
void addGlobalName(StringRef Name, DIE *Die) { GlobalNames[Name] = Die; }
|
||||
void addGlobalName(StringRef Name, DIE *Die);
|
||||
|
||||
/// addGlobalType - Add a new global type to the compile unit.
|
||||
///
|
||||
void addGlobalType(DIType Ty);
|
||||
|
||||
|
||||
/// addAccelName - Add a new name to the name accelerator table.
|
||||
void addAccelName(StringRef Name, DIE *Die) {
|
||||
std::vector<DIE*> &DIEs = AccelNames[Name];
|
||||
|
|
Loading…
Reference in New Issue