1
Fork 0

Add comments to span debugger

This commit is contained in:
Seo Sanghyeon 2014-02-07 20:13:07 +09:00
parent 5109d1adce
commit e5463b996c
2 changed files with 6 additions and 1 deletions

View file

@ -96,7 +96,7 @@ pub fn debugging_opts_map() -> ~[(&'static str, &'static str, u64)] {
("no-landing-pads", "omit landing pads for unwinding", ("no-landing-pads", "omit landing pads for unwinding",
NO_LANDING_PADS), NO_LANDING_PADS),
("debug-llvm", "enable debug output from LLVM", DEBUG_LLVM), ("debug-llvm", "enable debug output from LLVM", DEBUG_LLVM),
("show-span", "show spans", SHOW_SPAN), ("show-span", "show spans for compiler debugging", SHOW_SPAN),
("count-type-sizes", "count the sizes of aggregate types", ("count-type-sizes", "count the sizes of aggregate types",
COUNT_TYPE_SIZES), COUNT_TYPE_SIZES),
("meta-stats", "gather metadata statistics", META_STATS), ("meta-stats", "gather metadata statistics", META_STATS),

View file

@ -8,6 +8,11 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
//! Span debugger
//!
//! This module shows spans for all expressions in the crate
//! to help with compiler debugging.
use syntax::ast; use syntax::ast;
use syntax::visit; use syntax::visit;
use syntax::visit::Visitor; use syntax::visit::Visitor;