Index: include/llvm/Target/TargetMachine.h =================================================================== --- include/llvm/Target/TargetMachine.h +++ include/llvm/Target/TargetMachine.h @@ -254,6 +254,9 @@ return true; } + /// Add target-specific pre-linking passes to the specified pass manager. + virtual void addPreLinkPasses(PassManagerBase &, raw_pwrite_stream &) {} + /// True if subtarget inserts the final scheduling pass on its own. /// /// Branch relaxation, which must happen after block placement, can