Mercurial > projects > ldc
annotate gen/todebug.h @ 247:56199753e637 trunk
[svn r264] Fixed debug info for global variables.
author | lindquist |
---|---|
date | Mon, 09 Jun 2008 17:49:30 +0200 |
parents | d61ce72c39ab |
children | fc9c1a0eabbd |
rev | line source |
---|---|
82
d8dd47ef3973
[svn r86] Changed the way arguments are given storage. It is now detected if they will need it during semantic passes.
lindquist
parents:
diff
changeset
|
1 #ifndef LLVMDC_GEN_TODEBUG_H |
d8dd47ef3973
[svn r86] Changed the way arguments are given storage. It is now detected if they will need it during semantic passes.
lindquist
parents:
diff
changeset
|
2 #define LLVMDC_GEN_TODEBUG_H |
d8dd47ef3973
[svn r86] Changed the way arguments are given storage. It is now detected if they will need it during semantic passes.
lindquist
parents:
diff
changeset
|
3 |
d8dd47ef3973
[svn r86] Changed the way arguments are given storage. It is now detected if they will need it during semantic passes.
lindquist
parents:
diff
changeset
|
4 void RegisterDwarfSymbols(llvm::Module* mod); |
d8dd47ef3973
[svn r86] Changed the way arguments are given storage. It is now detected if they will need it during semantic passes.
lindquist
parents:
diff
changeset
|
5 |
139
0ab29b838084
[svn r143] Fixed: a few bugs in debug information, still only line info, but should be correct files now :)
lindquist
parents:
94
diff
changeset
|
6 llvm::GlobalVariable* DtoDwarfCompileUnit(Module* m); |
94
61615fa85940
[svn r98] Added support for std.c.stdlib.alloca via pragma(LLVM_internal, "alloca").
lindquist
parents:
82
diff
changeset
|
7 llvm::GlobalVariable* DtoDwarfSubProgram(FuncDeclaration* fd, llvm::GlobalVariable* compileUnit); |
82
d8dd47ef3973
[svn r86] Changed the way arguments are given storage. It is now detected if they will need it during semantic passes.
lindquist
parents:
diff
changeset
|
8 |
d8dd47ef3973
[svn r86] Changed the way arguments are given storage. It is now detected if they will need it during semantic passes.
lindquist
parents:
diff
changeset
|
9 void DtoDwarfFuncStart(FuncDeclaration* fd); |
d8dd47ef3973
[svn r86] Changed the way arguments are given storage. It is now detected if they will need it during semantic passes.
lindquist
parents:
diff
changeset
|
10 void DtoDwarfFuncEnd(FuncDeclaration* fd); |
d8dd47ef3973
[svn r86] Changed the way arguments are given storage. It is now detected if they will need it during semantic passes.
lindquist
parents:
diff
changeset
|
11 |
d8dd47ef3973
[svn r86] Changed the way arguments are given storage. It is now detected if they will need it during semantic passes.
lindquist
parents:
diff
changeset
|
12 void DtoDwarfStopPoint(unsigned ln); |
d8dd47ef3973
[svn r86] Changed the way arguments are given storage. It is now detected if they will need it during semantic passes.
lindquist
parents:
diff
changeset
|
13 |
245
d61ce72c39ab
[svn r262] Fixed debug info for normal function parameters.
lindquist
parents:
244
diff
changeset
|
14 /** |
d61ce72c39ab
[svn r262] Fixed debug info for normal function parameters.
lindquist
parents:
244
diff
changeset
|
15 * Emits all things necessary for making debug info for a local variable vd. |
d61ce72c39ab
[svn r262] Fixed debug info for normal function parameters.
lindquist
parents:
244
diff
changeset
|
16 * @param ll LLVM Value of the variable. |
d61ce72c39ab
[svn r262] Fixed debug info for normal function parameters.
lindquist
parents:
244
diff
changeset
|
17 * @param vd Variable declaration to emit debug info for. |
d61ce72c39ab
[svn r262] Fixed debug info for normal function parameters.
lindquist
parents:
244
diff
changeset
|
18 */ |
d61ce72c39ab
[svn r262] Fixed debug info for normal function parameters.
lindquist
parents:
244
diff
changeset
|
19 void DtoDwarfLocalVariable(LLValue* ll, VarDeclaration* vd); |
244
a95056b3c996
[svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents:
139
diff
changeset
|
20 |
247
56199753e637
[svn r264] Fixed debug info for global variables.
lindquist
parents:
245
diff
changeset
|
21 /** |
56199753e637
[svn r264] Fixed debug info for global variables.
lindquist
parents:
245
diff
changeset
|
22 * Emits all things necessary for making debug info for a global variable vd. |
56199753e637
[svn r264] Fixed debug info for global variables.
lindquist
parents:
245
diff
changeset
|
23 * @param ll |
56199753e637
[svn r264] Fixed debug info for global variables.
lindquist
parents:
245
diff
changeset
|
24 * @param vd |
56199753e637
[svn r264] Fixed debug info for global variables.
lindquist
parents:
245
diff
changeset
|
25 * @return |
56199753e637
[svn r264] Fixed debug info for global variables.
lindquist
parents:
245
diff
changeset
|
26 */ |
56199753e637
[svn r264] Fixed debug info for global variables.
lindquist
parents:
245
diff
changeset
|
27 LLGlobalVariable* DtoDwarfGlobalVariable(LLGlobalVariable* ll, VarDeclaration* vd); |
56199753e637
[svn r264] Fixed debug info for global variables.
lindquist
parents:
245
diff
changeset
|
28 |
82
d8dd47ef3973
[svn r86] Changed the way arguments are given storage. It is now detected if they will need it during semantic passes.
lindquist
parents:
diff
changeset
|
29 #endif // LLVMDC_GEN_TODEBUG_H |
d8dd47ef3973
[svn r86] Changed the way arguments are given storage. It is now detected if they will need it during semantic passes.
lindquist
parents:
diff
changeset
|
30 |
d8dd47ef3973
[svn r86] Changed the way arguments are given storage. It is now detected if they will need it during semantic passes.
lindquist
parents:
diff
changeset
|
31 |