mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-30 15:10:59 +03:00
Adapt to new string-switch lowering
Now all done in the front-end, no need for us to handle it manually anymore. This also fixes tests/semantic/dcompute.d.
This commit is contained in:
parent
a4005d80a0
commit
b83780538f
4 changed files with 18 additions and 114 deletions
|
@ -664,22 +664,6 @@ static void buildRuntimeModule() {
|
|||
//////////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// int _d_switch_string(char[][] table, char[] ca)
|
||||
createFwdDecl(LINKc, intTy, {"_d_switch_string"},
|
||||
{stringTy->arrayOf(), stringTy}, {}, Attr_ReadOnly);
|
||||
|
||||
// int _d_switch_ustring(wchar[][] table, wchar[] ca)
|
||||
createFwdDecl(LINKc, intTy, {"_d_switch_ustring"},
|
||||
{wstringTy->arrayOf(), wstringTy}, {}, Attr_ReadOnly);
|
||||
|
||||
// int _d_switch_dstring(dchar[][] table, dchar[] ca)
|
||||
createFwdDecl(LINKc, intTy, {"_d_switch_dstring"},
|
||||
{dstringTy->arrayOf(), dstringTy}, {}, Attr_ReadOnly);
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// int _d_eh_personality(...)
|
||||
{
|
||||
if (global.params.targetTriple->isWindowsMSVCEnvironment()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue