[SIL] Separate thunks from signature optimization from other thunks.

Signature optimization is slightly different to (most) other thunks, in that
it's taking an existing function and turning that into a thunk, rather than
creating a thunk that calls an existing function. These symbols can be public,
etc. and so need to be handled a bit different to other types of thunks.
This commit is contained in:
Huon Wilson
2018-06-26 14:53:58 +10:00
parent d82137b3da
commit 413501b34a
9 changed files with 59 additions and 51 deletions

View File

@@ -286,7 +286,7 @@ namespace sil_block {
BCRecordLayout<SIL_FUNCTION, SILLinkageField,
BCFixed<1>, // transparent
BCFixed<2>, // serialized
BCFixed<2>, // thunk/reabstraction_thunk
BCFixed<2>, // thunks: signature optimized/reabstraction
BCFixed<1>, // global_init
BCFixed<2>, // inlineStrategy
BCFixed<2>, // optimizationMode