This is an archive of the discontinued LLVM Phabricator instance.

[fir] Get rid of the global option in FIRBuilder
ClosedPublic

Authored by clementval on Nov 26 2021, 4:17 AM.

Details

Summary

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.

Diff Detail

Event Timeline

clementval created this revision.Nov 26 2021, 4:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 26 2021, 4:17 AM
clementval requested review of this revision.Nov 26 2021, 4:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 26 2021, 4:17 AM

Was the suggestion to use a dialect attribute/constant?

Was the suggestion to use a dialect attribute/constant?

It is currently not used so always 32 so a simple constexpr should be enough, no?

Was the suggestion to use a dialect attribute/constant?

It is currently not used so always 32 so a simple constexpr should be enough, no?

Ah OK, if it is not used then it is fine with me.

This revision is now accepted and ready to land.Nov 29 2021, 8:01 AM
This revision was automatically updated to reflect the committed changes.