Skip to content

Commit

Permalink
use two underscores for easy demangling [backport:1.6] (nim-lang#19028)
Browse files Browse the repository at this point in the history
(cherry picked from commit 1a45da9)
  • Loading branch information
Araq authored and narimiran committed Oct 27, 2021
1 parent ac89e06 commit b18b636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/ccgtypes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ proc mangleName(m: BModule; s: PSym): Rope =
result = s.loc.r
if result == nil:
result = s.name.s.mangle.rope
result.add "_"
result.add "__"
result.add m.g.graph.ifaces[s.itemId.module].uniqueName
result.add "_"
result.add rope s.itemId.item
Expand Down

0 comments on commit b18b636

Please sign in to comment.