Skip to content

Commit

Permalink
Add the Z 'type' to the mangling ABI to denote internal symbols.
Browse files Browse the repository at this point in the history
See discussion here: dlang/druntime#725

D already creates mangled names using the Z symbol for internal symbols, e.g.
_D3foo3Bar6__vtblZ for the virtual table for class foo.Bar. The ABI makes no
mention of these symbols. This pull request adds Z to the mangling ABI to make
these official symbols. The linked pull request implements that demangling.
  • Loading branch information
fb-pja committed Aug 9, 2014
1 parent f08a4ee commit d9ac164
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions abi.dd
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ $(I Type):
$(I TypeNull)
$(I TypeTuple)
$(I TypeVector)
$(I Internal)

$(I Shared):
$(B O) $(I Type)
Expand Down Expand Up @@ -591,6 +592,9 @@ $(I TypeNull):

$(I TypeTuple):
$(B B) $(I Number) $(I Arguments)

$(I Internal):
$(B Z)
)
)

Expand Down

0 comments on commit d9ac164

Please sign in to comment.