File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
src/tools/run-make-support/src Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,22 @@ impl LlvmReadobj {
61
61
Self { cmd }
62
62
}
63
63
64
+ /// Specify the format of the ELF information.
65
+ ///
66
+ /// Valid options are `LLVM` (default), `GNU`, and `JSON`.
67
+ pub fn elf_output_style ( & mut self , style : & str ) -> & mut Self {
68
+ self . cmd . arg ( "--elf-output-style" ) ;
69
+ self . cmd . arg ( style) ;
70
+ self
71
+ }
72
+
73
+ /// Set the formation of the ELF information as `GNU`.
74
+ ///
75
+ /// Convenience function for [`elf_output_style`].
76
+ pub fn gnu_elf_style ( & mut self ) -> & mut Self {
77
+ self . elf_output_style ( "GNU" )
78
+ }
79
+
64
80
/// Provide an input file.
65
81
pub fn input < P : AsRef < Path > > ( & mut self , path : P ) -> & mut Self {
66
82
self . cmd . arg ( path. as_ref ( ) ) ;
@@ -72,6 +88,13 @@ impl LlvmReadobj {
72
88
self . cmd . arg ( "--file-header" ) ;
73
89
self
74
90
}
91
+
92
+ /// Specify the section to display.
93
+ pub fn section ( & mut self , section : & str ) -> & mut Self {
94
+ self . cmd . arg ( "--string-dump" ) ;
95
+ self . cmd . arg ( section) ;
96
+ self
97
+ }
75
98
}
76
99
77
100
impl LlvmProfdata {
You can’t perform that action at this time.
0 commit comments