[llvm] [DebugInfo] Move `codeview::SourceLanguage` enumerators to CodeViewLanguages.def (NFC) (PR #141750)
Hans Wennborg via llvm-commits
llvm-commits at lists.llvm.org
Fri May 30 06:04:45 PDT 2025
https://github.com/zmodem commented:
LLVM does this a lot, but I think there has to be some benefit, otherwise it's just extra indirection over a having a regular enum.
I don't know if the enum you're creating in #137223 is enough of a motivation. Does it really have much benefit over just storing the original enum values + tag in an unsigned? The new enum seems to be mostly used by looking at the tag and then casting to one of the original enums anyway.
https://github.com/llvm/llvm-project/pull/141750
More information about the llvm-commits
mailing list