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