Skip to content

Commit d98f3bc

Browse files
committed
Escape mangled function names
Windows uses non-ascii and non-visual characters in mangled names T.T
1 parent 10ea03c commit d98f3bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ir/function.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ impl DotAttributes for Function {
7070
where W: io::Write,
7171
{
7272
if let Some(ref mangled) = self.mangled_name {
73+
let mangled: String = mangled.chars().flat_map(|c| c.escape_default()).collect();
7374
try!(writeln!(out,
7475
"<tr><td>mangled name</td><td>{}</td></tr>",
7576
mangled));

0 commit comments

Comments
 (0)