File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
src/tools/run-make-support/src/external_deps Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,13 @@ pub struct LlvmDwarfdump {
110110 cmd : Command ,
111111}
112112
113+ /// A `llvm-pdbutil` invocation builder.
114+ #[ derive( Debug ) ]
115+ #[ must_use]
116+ pub struct LlvmPdbutil {
117+ cmd : Command ,
118+ }
119+
113120crate :: macros:: impl_common_helpers!( LlvmReadobj ) ;
114121crate :: macros:: impl_common_helpers!( LlvmProfdata ) ;
115122crate :: macros:: impl_common_helpers!( LlvmFilecheck ) ;
@@ -118,6 +125,7 @@ crate::macros::impl_common_helpers!(LlvmAr);
118125crate :: macros:: impl_common_helpers!( LlvmNm ) ;
119126crate :: macros:: impl_common_helpers!( LlvmBcanalyzer ) ;
120127crate :: macros:: impl_common_helpers!( LlvmDwarfdump ) ;
128+ crate :: macros:: impl_common_helpers!( LlvmPdbutil ) ;
121129
122130/// Generate the path to the bin directory of LLVM.
123131#[ must_use]
@@ -360,3 +368,19 @@ impl LlvmDwarfdump {
360368 self
361369 }
362370}
371+
372+ impl LlvmPdbutil {
373+ /// Construct a new `llvm-pdbutil` invocation. This assumes that `llvm-pdbutil` is available
374+ /// at `$LLVM_BIN_DIR/llvm-pdbutil`.
375+ pub fn new ( ) -> Self {
376+ let llvm_pdbutil = llvm_bin_dir ( ) . join ( "llvm-pdbutil" ) ;
377+ let cmd = Command :: new ( llvm_pdbutil) ;
378+ Self { cmd }
379+ }
380+
381+ /// Provide an input file.
382+ pub fn input < P : AsRef < Path > > ( & mut self , path : P ) -> & mut Self {
383+ self . cmd . arg ( path. as_ref ( ) ) ;
384+ self
385+ }
386+ }
You can’t perform that action at this time.
0 commit comments