Migrate addGlobalName to the .cpp file as an intermediate step
authorEric Christopher <echristo@gmail.com>
Fri, 20 Sep 2013 22:20:55 +0000 (22:20 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 20 Sep 2013 22:20:55 +0000 (22:20 +0000)
to further work.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191113 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/CodeGen/AsmPrinter/DwarfCompileUnit.h

index 2638b3150f0bd6a8fc8d0fb4b9c9d88c0d2ee43a..fe4a729e96584d12a55149adb54cce205c4cdbc2 100644 (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) {
index ecffb257025371c8cffefeb9a929114a6ecc1a4d..980ebc8b625712846b2d9dd13d15dcf052c2e82a 100644 (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];