diff gen/todebug.h @ 686:363bb6c0cc80

Emit stub debug info for generated functions to work around LLVM bug 2172.
author Christian Kamm <kamm incasoftware de>
date Sun, 12 Oct 2008 14:38:55 +0200
parents eef8ac26c66c
children 1714836f2c0b
line wrap: on
line diff
--- a/gen/todebug.h	Sun Oct 12 11:23:27 2008 +0200
+++ b/gen/todebug.h	Sun Oct 12 14:38:55 2008 +0200
@@ -17,6 +17,14 @@
  */
 llvm::GlobalVariable* DtoDwarfSubProgram(FuncDeclaration* fd);
 
+/**
+ * Emit the Dwarf subprogram global for a internal function.
+ * This is used for generated functions like moduleinfoctors, 
+ * module ctors/dtors and unittests.
+ * @return the Dwarf subprogram global.
+ */
+llvm::GlobalVariable* DtoDwarfSubProgramInternal(const char* prettyname, const char* mangledname);
+
 void DtoDwarfFuncStart(FuncDeclaration* fd);
 void DtoDwarfFuncEnd(FuncDeclaration* fd);