[llvm] r191113 - Migrate addGlobalName to the .cpp file as an intermediate step
Eric Christopher
echristo at gmail.com
Fri Sep 20 15:20:55 PDT 2013
Author: echristo
Date: Fri Sep 20 17:20:55 2013
New Revision: 191113
URL: http://llvm.org/viewvc/llvm-project?rev=191113&view=rev
Log:
Migrate addGlobalName to the .cpp file as an intermediate step
to further work.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp?rev=191113&r1=191112&r2=191113&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp Fri Sep 20 17:20:55 2013
@@ -843,6 +843,11 @@ void CompileUnit::addType(DIE *Entity, D
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) {
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h?rev=191113&r1=191112&r2=191113&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h Fri Sep 20 17:20:55 2013
@@ -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];
More information about the llvm-commits
mailing list