Skip to content

Commit 0b13d3e

Browse files
---
yaml --- r: 63498 b: refs/heads/snap-stage3 c: 38743f5 h: refs/heads/master v: v3
1 parent 4366899 commit 0b13d3e

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 290d35312a8c74d4652d2e8196234151f9efcabf
4+
refs/heads/snap-stage3: 38743f51ade64148be396438b1f6fe4639336ab3
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/middle/trans/debuginfo.rs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ such as datatype layout, function signatures, block layout, variable location an
2222
etc. It is the purpose of this module to generate correct metadata and insert it into the LLVM IR.
2323
2424
As the exact format of metadata trees may change between different LLVM versions, we now use LLVM
25-
[DIBuilder](http://llvm.org/docs/doxygen/html/classllvm_1_1DIBuilder.html) which to create metadata
25+
[DIBuilder](http://llvm.org/docs/doxygen/html/classllvm_1_1DIBuilder.html) to create metadata
2626
where possible. This will hopefully ease the adaption of this module to future LLVM versions.
2727
2828
The public API of the module is a set of functions that will insert the correct metadata into the
2929
LLVM IR when called with the right parameters. The module is thus driven from an outside client with
30-
function like `debuginfo::create_local_var(bcx: block, local: @ast::local)`.
30+
functions like `debuginfo::create_local_var(bcx: block, local: @ast::local)`.
3131
3232
Internally the module will try to reuse already created metadata by utilizing a cache. All private
3333
state used by the module is stored within a DebugContext struct, which in turn is contained in the
@@ -67,20 +67,8 @@ use syntax::{ast, codemap, ast_util, ast_map};
6767

6868
static DW_LANG_RUST: int = 0x9000;
6969

70-
static CompileUnitTag: int = 17;
71-
static FileDescriptorTag: int = 41;
72-
static SubprogramTag: int = 46;
73-
static SubroutineTag: int = 21;
74-
static BasicTypeDescriptorTag: int = 36;
7570
static AutoVariableTag: int = 256;
7671
static ArgVariableTag: int = 257;
77-
static ReturnVariableTag: int = 258;
78-
static LexicalBlockTag: int = 11;
79-
static PointerTypeTag: int = 15;
80-
static StructureTypeTag: int = 19;
81-
static MemberTag: int = 13;
82-
static ArrayTypeTag: int = 1;
83-
static SubrangeTag: int = 33;
8472

8573
static DW_ATE_boolean: int = 0x02;
8674
static DW_ATE_float: int = 0x04;

0 commit comments

Comments
 (0)