[fir] Get rid of the global option in FIRBuilder
authorValentin Clement <clementval@gmail.com>
Mon, 29 Nov 2021 16:07:49 +0000 (17:07 +0100)
committerValentin Clement <clementval@gmail.com>
Mon, 29 Nov 2021 16:08:09 +0000 (17:08 +0100)
commit1cc3b135aa61a31a7f7e488dd720e29bd8907bfc
tree4b6d02529941cec1cce08dda734aba0299dcaa5a
parent7e73c2a66a8bb73b80aedc94c4e58598ac87e9d5
[fir] Get rid of the global option in FIRBuilder

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
flang/lib/Optimizer/Builder/FIRBuilder.cpp