[PATCH] D114630: [fir] Get rid of the global option in FIRBuilder
Valentin Clement via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 29 08:08:16 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1cc3b135aa61: [fir] Get rid of the global option in FIRBuilder (authored by clementval).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114630/new/
https://reviews.llvm.org/D114630
Files:
flang/lib/Optimizer/Builder/FIRBuilder.cpp
Index: flang/lib/Optimizer/Builder/FIRBuilder.cpp
===================================================================
--- flang/lib/Optimizer/Builder/FIRBuilder.cpp
+++ flang/lib/Optimizer/Builder/FIRBuilder.cpp
@@ -19,12 +19,7 @@
#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,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114630.390370.patch
Type: text/x-patch
Size: 846 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211129/a7057308/attachment.bin>
More information about the llvm-commits
mailing list