summaryrefslogtreecommitdiff
path: root/src/trans/mangling.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-12-18 12:45:37 +0800
committerJohn Hodge <tpg@mutabah.net>2016-12-18 12:45:37 +0800
commitcd260a91e81f6196b89c09a8ccc74bdfea4ab827 (patch)
treebb879b980b9a90e9289d925740f990bc5333276b /src/trans/mangling.cpp
parentf06d01f899a58e2f5c4207d8def237872f40a47e (diff)
downloadmrust-cd260a91e81f6196b89c09a8ccc74bdfea4ab827.tar.gz
Trans C - Rough destructors
Diffstat (limited to 'src/trans/mangling.cpp')
-rw-r--r--src/trans/mangling.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/trans/mangling.cpp b/src/trans/mangling.cpp
index 10b73f88..ef41abed 100644
--- a/src/trans/mangling.cpp
+++ b/src/trans/mangling.cpp
@@ -90,7 +90,10 @@ namespace {
ss << "_ZRI$aL";
ss << Trans_Mangle(*pe.type);
ss << "$aR";
- ss << pe.item;
+ if( pe.item[0] == '#' )
+ ss << (pe.item.size()-1+2) << "$H" << (pe.item.c_str()+1);
+ else
+ ss << pe.item;
ss << emit_params(pe.params);
);
)