Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions src/ddmd/dmangle.d
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,14 @@ private immutable char[TMAX] mangleChar =
// K // ref
// L // lazy
// M // has this, or scope
// N // Nh:vector Ng:wild
// N // Nh:vector Ng:wild, No:Objective-C function, Np:Pascal function
// O // shared
Tpointer : 'P',
// Q
Treference : 'R',
Tstruct : 'S',
// T // Ttypedef
// U // C function
// V // Pascal function
// W // Windows function
// X // variadic T t...)
// Y // variadic T t,...)
Expand Down Expand Up @@ -247,31 +246,29 @@ public:
t.inuse++;
if (modMask != t.mod)
MODtoDecoBuffer(buf, t.mod);
ubyte mc;
switch (t.linkage)
{
case LINKd:
mc = 'F';
buf.writeByte('F');
break;
case LINKc:
mc = 'U';
buf.writeByte('U');
break;
case LINKwindows:
mc = 'W';
buf.writeByte('W');
break;
case LINKpascal:
mc = 'V';
buf.writestring("Np");
break;
case LINKcpp:
mc = 'R';
buf.writeByte('R');
break;
case LINKobjc:
mc = 'Y';
buf.writestring("No");
break;
default:
assert(0);
}
buf.writeByte(mc);
if (ta.purity || ta.isnothrow || ta.isnogc || ta.isproperty || ta.isref || ta.trust || ta.isreturn || ta.isscope)
{
if (ta.purity)
Expand Down