diff options
author | Eric Christopher <echristo@gmail.com> | 2013-09-20 22:20:55 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-09-20 22:20:55 +0000 |
commit | 50d37a4e569536485ace9131fa6726a36c8e0d87 (patch) | |
tree | fda8ad88784887cbe48c2f4d60e4adb2f2331f96 /lib/CodeGen | |
parent | 19a6f1133fbc01d18bd07cdc082e9488d731bcbc (diff) | |
download | llvm-50d37a4e569536485ace9131fa6726a36c8e0d87.tar.gz llvm-50d37a4e569536485ace9131fa6726a36c8e0d87.tar.bz2 llvm-50d37a4e569536485ace9131fa6726a36c8e0d87.tar.xz |
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
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 5 | ||||
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 2638b3150f..fe4a729e96 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -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) { diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index ecffb25702..980ebc8b62 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -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]; |