@@ -611,7 +611,7 @@ Error CodeGenPassBuilder<Derived, TargetMachineT>::buildPipeline(
611611
612612 if (!Opt.RegAllocPipeline .empty ())
613613 return make_error<StringError>(
614- " Extra passes in regalloc pipeline: " + Opt.RegAllocPipeline ,
614+ " extra passes in regalloc pipeline: " + Opt.RegAllocPipeline ,
615615 std::make_error_code (std::errc::invalid_argument));
616616
617617 return verifyStartStop (*StartStopInfo);
@@ -1126,8 +1126,7 @@ bool CodeGenPassBuilder<Derived, TargetMachineT>::addRegAllocPassFromOpt(
11261126 StringRef PassOpt;
11271127 std::tie (PassOpt, Opt.RegAllocPipeline ) = Opt.RegAllocPipeline .split (' ,' );
11281128 // Reuse the registered parser to parse the pass name.
1129- #define MACHINE_FUNCTION_PASS_WITH_PARAMS (NAME, CLASS, CREATE_PASS, PARSER, \
1130- PARAMS) \
1129+ #define RA_PASS_WITH_PARAMS (NAME, CLASS, CREATE_PASS, PARSER, PARAMS ) \
11311130 if (PB.checkParametrizedPassName (PassOpt, NAME)) { \
11321131 auto Params = PB.parsePassParameters (PARSER, PassOpt, NAME, \
11331132 const_cast <const PassBuilder &>(PB)); \
@@ -1137,17 +1136,17 @@ bool CodeGenPassBuilder<Derived, TargetMachineT>::addRegAllocPassFromOpt(
11371136 } \
11381137 if (!MatchPassTo.empty ()) { \
11391138 if (MatchPassTo != CLASS) \
1140- report_fatal_error (" Expected " + \
1139+ report_fatal_error (" expected " + \
11411140 PIC->getPassNameForClassName (MatchPassTo) + \
1142- " in option -regalloc-npm" , \
1141+ " in option -- regalloc-npm" , \
11431142 false ); \
11441143 } \
11451144 addPass (CREATE_PASS (Params.get ())); \
11461145 return true ; \
11471146 }
11481147#include " llvm/Passes/MachinePassRegistry.def"
11491148 if (PassOpt != " default" ) {
1150- report_fatal_error (" Unknown register allocator pass: " + PassOpt, false );
1149+ report_fatal_error (" unknown register allocator pass: " + PassOpt, false );
11511150 }
11521151 }
11531152 // If user did not give a specific pass, use the default provided.
0 commit comments