Replace the global option `nameLengthHashSize` with a constexpr
with the same name. The option was not used in fir-dev so switching
to a constexpr is fine.
Reviewed By: kiranchandramohan
Differential Revision: https://reviews.llvm.org/D114630
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/MD5.h"
-static llvm::cl::opt<std::size_t>
- nameLengthHashSize("length-to-hash-string-literal",
- llvm::cl::desc("string literals that exceed this length"
- " will use a hash value as their symbol "
- "name"),
- llvm::cl::init(32));
+static constexpr std::size_t nameLengthHashSize = 32;
mlir::FuncOp fir::FirOpBuilder::createFunction(mlir::Location loc,
mlir::ModuleOp module,