File tree Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -44,14 +44,6 @@ pub struct Loader {
44
44
arena_mmap : Arena < Mmap > ,
45
45
}
46
46
47
- /// Information from a symbol table entry.
48
- pub struct Symbol < ' a > {
49
- /// The symbol name
50
- pub name : & ' a str ,
51
- /// The symbol address
52
- pub address : u64 ,
53
- }
54
-
55
47
impl Loader {
56
48
/// Load the DWARF data for an executable file and create a `Context`.
57
49
#[ inline]
@@ -487,3 +479,21 @@ fn convert_path(bytes: &[u8]) -> Result<PathBuf> {
487
479
let s = std:: str:: from_utf8 ( bytes) ?;
488
480
Ok ( PathBuf :: from ( s) )
489
481
}
482
+
483
+ /// Information from a symbol table entry.
484
+ pub struct Symbol < ' a > {
485
+ name : & ' a str ,
486
+ address : u64 ,
487
+ }
488
+
489
+ impl < ' a > Symbol < ' a > {
490
+ /// Get the symbol name.
491
+ pub fn name ( & self ) -> & ' a str {
492
+ self . name
493
+ }
494
+
495
+ /// Get the symbol address.
496
+ pub fn address ( & self ) -> u64 {
497
+ self . address
498
+ }
499
+ }
You can’t perform that action at this time.
0 commit comments