Skip to content
This repository was archived by the owner on Oct 24, 2019. It is now read-only.

Commit a9310d5

Browse files
committed
WebAssembly: enable Swift calling convention in ISelLowering, ignore hot/cold split directives
1 parent 082dec2 commit a9310d5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/MC/MCWasmStreamer.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ bool MCWasmStreamer::EmitSymbolAttribute(MCSymbol *S, MCSymbolAttr Attribute) {
8989
getAssembler().registerSymbol(*Symbol);
9090

9191
switch (Attribute) {
92+
case MCSA_Cold:
9293
case MCSA_LazyReference:
9394
case MCSA_Reference:
9495
case MCSA_SymbolResolver:

lib/Target/WebAssembly/WebAssemblyISelLowering.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,8 @@ static bool CallingConvSupported(CallingConv::ID CallConv) {
598598
CallConv == CallingConv::Cold ||
599599
CallConv == CallingConv::PreserveMost ||
600600
CallConv == CallingConv::PreserveAll ||
601-
CallConv == CallingConv::CXX_FAST_TLS;
601+
CallConv == CallingConv::CXX_FAST_TLS ||
602+
CallConv == CallingConv::Swift;
602603
}
603604

604605
SDValue

0 commit comments

Comments
 (0)