This eliminates the requirement that pass-related strings outlive pass
instances, which will facilitate future work enabling dynamic passes
written in other languages.
Differential Revision: https://reviews.llvm.org/D120341
private:
/// The argument with which to invoke the pass via mlir-opt.
- StringRef arg;
+ std::string arg;
/// Description of the pass.
- StringRef description;
+ std::string description;
/// Function to register this entry to a pass manager pipeline.
PassRegistryFunction builder;