Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
244:a95056b3c996 | 245:d61ce72c39ab |
---|---|
1 #ifndef LLVMDC_GEN_TODEBUG_H | 1 #ifndef LLVMDC_GEN_TODEBUG_H |
2 #define LLVMDC_GEN_TODEBUG_H | 2 #define LLVMDC_GEN_TODEBUG_H |
3 | 3 |
4 void RegisterDwarfSymbols(llvm::Module* mod); | 4 void RegisterDwarfSymbols(llvm::Module* mod); |
5 | |
6 const llvm::StructType* GetDwarfAnchorType(); | |
7 const llvm::StructType* GetDwarfCompileUnitType(); | |
8 const llvm::StructType* GetDwarfSubProgramType(); | |
9 | 5 |
10 llvm::GlobalVariable* DtoDwarfCompileUnit(Module* m); | 6 llvm::GlobalVariable* DtoDwarfCompileUnit(Module* m); |
11 llvm::GlobalVariable* DtoDwarfSubProgram(FuncDeclaration* fd, llvm::GlobalVariable* compileUnit); | 7 llvm::GlobalVariable* DtoDwarfSubProgram(FuncDeclaration* fd, llvm::GlobalVariable* compileUnit); |
12 | 8 |
13 void DtoDwarfFuncStart(FuncDeclaration* fd); | 9 void DtoDwarfFuncStart(FuncDeclaration* fd); |
14 void DtoDwarfFuncEnd(FuncDeclaration* fd); | 10 void DtoDwarfFuncEnd(FuncDeclaration* fd); |
15 | 11 |
16 void DtoDwarfStopPoint(unsigned ln); | 12 void DtoDwarfStopPoint(unsigned ln); |
17 | 13 |
18 const llvm::StructType* GetDwarfBasicTypeType(); | 14 /** |
19 LLGlobalVariable* DtoDwarfBasicType(Type* type, llvm::GlobalVariable* compileUnit); | 15 * Emits all things necessary for making debug info for a local variable vd. |
20 | 16 * @param ll LLVM Value of the variable. |
21 const llvm::StructType* GetDwarfVariableType(); | 17 * @param vd Variable declaration to emit debug info for. |
22 LLGlobalVariable* DtoDwarfVariable(VarDeclaration* vd, LLGlobalVariable* typeDescr); | 18 */ |
23 void DtoDwarfDeclare(LLValue* var, LLGlobalVariable* varDescr); | 19 void DtoDwarfLocalVariable(LLValue* ll, VarDeclaration* vd); |
24 | 20 |
25 #endif // LLVMDC_GEN_TODEBUG_H | 21 #endif // LLVMDC_GEN_TODEBUG_H |
26 | 22 |
27 | 23 |