// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
-// http://!rust-lang.org/COPYRIGHT.
+// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://!www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://!opensource.org/licenses/MIT>, at your
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use super::{UNKNOWN_FILE_METADATA, UNKNOWN_SCOPE_METADATA, UNKNOWN_LINE_NUMBER,
UniqueTypeId, FLAGS_NONE, create_and_register_recursive_type_forward_declaration};
-
-use super::utils::{debug_context, DIB, span_start, bytes_to_bits, size_and_align_of,
- get_namespace_and_span_for_item};
+use super::utils::{debug_context, DIB, span_start, bytes_to_bits,
+ size_and_align_of, get_namespace_and_span_for_item};
use super::create::create_DIArray;
use super::types::compute_debuginfo_type_name;
use super::metadata::{type_metadata, file_metadata};
use syntax::{ast, codemap};
use syntax::parse::token::{self, special_idents};
+
pub enum MemberOffset {
FixedMemberOffset { bytes: usize },
// For ComputedMemberOffset, the offset is read from the llvm type definition.
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
-// http://!rust-lang.org/COPYRIGHT.
+// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://!www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://!opensource.org/licenses/MIT>, at your
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
-// http://!rust-lang.org/COPYRIGHT.
+// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://!www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://!opensource.org/licenses/MIT>, at your
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
-// http://!rust-lang.org/COPYRIGHT.
+// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://!www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://!opensource.org/licenses/MIT>, at your
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// .debug_gdb_scripts binary section
+// .debug_gdb_scripts binary section.
use llvm;
use llvm::ValueRef;
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
-// http://!rust-lang.org/COPYRIGHT.
+// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://!www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://!opensource.org/licenses/MIT>, at your
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use super::utils::{debug_context, DIB, span_start, bytes_to_bits, size_and_align_of,
- get_namespace_and_span_for_item};
+ get_namespace_and_span_for_item};
use super::{UNKNOWN_FILE_METADATA, UNKNOWN_SCOPE_METADATA,
UniqueTypeId, FLAGS_NONE};
use super::types::compute_debuginfo_type_name;
use syntax::codemap::Span;
use syntax::{ast, codemap};
+
const DW_LANG_RUST: c_uint = 0x9000;
#[allow(non_upper_case_globals)]
const DW_ATE_boolean: c_uint = 0x02;
// Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
-// http://!rust-lang.org/COPYRIGHT.
+// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://!www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://!opensource.org/licenses/MIT>, at your
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// See doc.rs for documentation.
mod doc;
-pub mod gdb;
-mod utils;
-mod create;
-mod namespace;
-mod types;
-mod metadata;
-mod adt;
-
use self::VariableAccess::*;
use self::VariableKind::*;
use self::InternalDebugLocation::*;
use self::create::{declare_local, create_DIArray, is_node_local_to_unit};
use self::namespace::{namespace_for_item, NamespaceTreeNode};
use self::types::{compute_debuginfo_type_name, push_debuginfo_type_name};
-use self::metadata::{type_metadata, file_metadata, scope_metadata, compile_unit_metadata, MetadataCreationResult};
+use self::metadata::{type_metadata, file_metadata, scope_metadata,
+ compile_unit_metadata, MetadataCreationResult};
use self::adt::{MemberDescriptionFactory, set_members_of_composite_type};
use llvm;
use syntax::{ast, codemap, ast_util, ast_map};
use syntax::parse::token::{self, special_idents};
+pub mod gdb;
+mod utils;
+mod create;
+mod namespace;
+mod types;
+mod metadata;
+mod adt;
+
+
#[allow(non_upper_case_globals)]
const DW_TAG_auto_variable: c_uint = 0x100;
#[allow(non_upper_case_globals)]
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
-// http://!rust-lang.org/COPYRIGHT.
+// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://!www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://!opensource.org/licenses/MIT>, at your
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// Namespace Handling
+// Namespace Handling.
use super::utils::{DIB, debug_context};
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
-// http://!rust-lang.org/COPYRIGHT.
+// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://!www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://!opensource.org/licenses/MIT>, at your
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// Type Names for Debug Info
+// Type Names for Debug Info.
use super::namespace::crate_root_namespace;
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
-// http://!rust-lang.org/COPYRIGHT.
+// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://!www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://!opensource.org/licenses/MIT>, at your
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.