diff gen/todebug.h @ 245:d61ce72c39ab trunk

[svn r262] Fixed debug info for normal function parameters. Fixed debug info for pointers to basic types.
author lindquist
date Mon, 09 Jun 2008 12:43:16 +0200
parents a95056b3c996
children 56199753e637
line wrap: on
line diff
--- a/gen/todebug.h	Mon Jun 09 09:37:08 2008 +0200
+++ b/gen/todebug.h	Mon Jun 09 12:43:16 2008 +0200
@@ -3,10 +3,6 @@
 
 void RegisterDwarfSymbols(llvm::Module* mod);
 
-const llvm::StructType* GetDwarfAnchorType();
-const llvm::StructType* GetDwarfCompileUnitType();
-const llvm::StructType* GetDwarfSubProgramType();
-
 llvm::GlobalVariable* DtoDwarfCompileUnit(Module* m);
 llvm::GlobalVariable* DtoDwarfSubProgram(FuncDeclaration* fd, llvm::GlobalVariable* compileUnit);
 
@@ -15,12 +11,12 @@
 
 void DtoDwarfStopPoint(unsigned ln);
 
-const llvm::StructType* GetDwarfBasicTypeType();
-LLGlobalVariable* DtoDwarfBasicType(Type* type, llvm::GlobalVariable* compileUnit);
-
-const llvm::StructType* GetDwarfVariableType();
-LLGlobalVariable* DtoDwarfVariable(VarDeclaration* vd, LLGlobalVariable* typeDescr);
-void DtoDwarfDeclare(LLValue* var, LLGlobalVariable* varDescr);
+/**
+ * Emits all things necessary for making debug info for a local variable vd.
+ * @param ll LLVM Value of the variable.
+ * @param vd Variable declaration to emit debug info for.
+ */
+void DtoDwarfLocalVariable(LLValue* ll, VarDeclaration* vd);
 
 #endif // LLVMDC_GEN_TODEBUG_H