summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/Native/NativeCompilandSymbol.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2018-09-07 23:07:55 +0000
committerReid Kleckner <rnk@google.com>2018-09-07 23:07:55 +0000
commitf803b23879d9e1d9415ec1875713534dcc203df5 (patch)
tree7694ed09cc37eb69d3dc59206ef755fe3580633d /llvm/lib/DebugInfo/PDB/Native/NativeCompilandSymbol.cpp
parentc30dfb2dfc3dbe707a86c8aaf3b1cae79f3eb838 (diff)
downloadbcm5719-llvm-f803b23879d9e1d9415ec1875713534dcc203df5.tar.gz
bcm5719-llvm-f803b23879d9e1d9415ec1875713534dcc203df5.zip
[COFF] Implement llvm.global_ctors priorities for MSVC COFF targets
Summary: MSVC and LLD sort sections ASCII-betically, so we need to use section names that sort between .CRT$XCA (the start) and .CRT$XCU (the default priority). In the general case, use .CRT$XCT12345 as the section name, and let the linker sort the zero-padded digits. Users with low priorities typically want to initialize as early as possible, so use .CRT$XCA00199 for prioties less than 200. This number is arbitrary. Implements PR38552. Reviewers: majnemer, mstorsjo Subscribers: hiraditya, llvm-commits Differential Revision: https://reviews.llvm.org/D51820 llvm-svn: 341727
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/NativeCompilandSymbol.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud