Sink DwarfUnit::addVariableAddress into DwarfCompileUnit since type units don't have...
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfCompileUnit.h
index 043194ee246805988ed1179aac7d36ecb6934ae3..a98c1417b28d9152a3cd34bb25c94a3001e4c638 100644 (file)
@@ -191,6 +191,11 @@ public:
 
   const StringMap<const DIE *> &getGlobalNames() const { return GlobalNames; }
   const StringMap<const DIE *> &getGlobalTypes() const { return GlobalTypes; }
+
+  /// Add DW_AT_location attribute for a DbgVariable based on provided
+  /// MachineLocation.
+  void addVariableAddress(const DbgVariable &DV, DIE &Die,
+                          MachineLocation Location);
 };
 
 } // end llvm namespace