[llvm] [Support] Add compact enum table (PR #202044)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 23 10:51:25 PDT 2026
MaskRay wrote:
Summary (correct me if wrong): Today's EnumEntry requires two dynamic relocations (ELF `R_*_RELATIVE`) in `-pie` and `-shared` objects. This PR constructs a constexpr table without dynamic relocations. While we could also use `llvm::StringTable` as the storage, that would introduce a `strlen` overhead.
https://github.com/llvm/llvm-project/pull/202044
More information about the llvm-commits
mailing list