Since #180464, MCAsmInfo holds the canonical MCTargetOptions. The MCTargetAsmParser::MCOptions member is a redundant by-value copy, which may have inconsistent values (llvm-exegesis passes a temporary MCTargetOptions(), but this probably doesn't matter in practice; other in-tree uses are correct). Remove the field in favor of getParser().getContext().getTargetOptions, and remove the MCTargetOptions parameter from the base ctor, all subclass ctors, Target::createMCAsmParser, MCAsmParserCtorTy, and RegisterMCAsmParser.
6.4 KiB
6.4 KiB