This is part of the overall goal of removing static initializers from LLVM.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Looks good with a small tweak below...
lib/Bitcode/Reader/BitcodeReader.cpp | ||
---|---|---|
3510 | 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. |
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.