This is part of the overall goal of removing static initializers from LLVM.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Looks good with a small tweak below...
lib/Bitcode/Reader/BitcodeReader.cpp | ||
---|---|---|
3508 ↗ | (On Diff #13884) | Since we can't rely on MSVC's thread safe function local statics we have to use a ManagedStatic here... but once we do, on non MSVC we pay the once-init cost twice. I would just make these globals (sadly) until we only rely on MSVC versions with support for killing managed static entirely. |