diff gen/todebug.h @ 250:fc9c1a0eabbd trunk

[svn r267] Fixed debug info for global variables. Cleaned up the debug info code in general.
author lindquist
date Wed, 11 Jun 2008 20:53:26 +0200
parents 56199753e637
children eef8ac26c66c
line wrap: on
line diff
--- a/gen/todebug.h	Tue Jun 10 21:44:04 2008 +0200
+++ b/gen/todebug.h	Wed Jun 11 20:53:26 2008 +0200
@@ -3,8 +3,19 @@
 
 void RegisterDwarfSymbols(llvm::Module* mod);
 
+/**
+ * Emit the Dwarf compile_unit global for a Module m.
+ * @param m
+ * @return the Dwarf compile_unit.
+ */
 llvm::GlobalVariable* DtoDwarfCompileUnit(Module* m);
-llvm::GlobalVariable* DtoDwarfSubProgram(FuncDeclaration* fd, llvm::GlobalVariable* compileUnit);
+
+/**
+ * Emit the Dwarf subprogram global for a function declaration fd.
+ * @param fd
+ * @return the Dwarf subprogram global.
+ */
+llvm::GlobalVariable* DtoDwarfSubProgram(FuncDeclaration* fd);
 
 void DtoDwarfFuncStart(FuncDeclaration* fd);
 void DtoDwarfFuncEnd(FuncDeclaration* fd);