Migrate addGlobalName to the .cpp file as an intermediate step

to further work.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191113 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2013-09-20 22:20:55 +00:00
parent 19a6f1133f
commit 50d37a4e56
2 changed files with 6 additions and 2 deletions

View File

@ -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) {

View File

@ -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];