mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
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:
parent
19a6f1133f
commit
50d37a4e56
@ -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…
x
Reference in New Issue
Block a user