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-dwarfdump` 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]  
@@ -359,3 +367,19 @@ impl LlvmDwarfdump {
359367        self 
360368    } 
361369} 
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