Disabling mangled name extraction.

This commit is contained in:
Ben Vanik 2014-01-13 20:51:35 -08:00
parent d73aa419d1
commit dfaa0e2d08
1 changed files with 3 additions and 2 deletions

View File

@ -244,10 +244,11 @@ int Module::ReadMap(const char* file_name) {
// Don't overwrite names we've set elsewhere.
if (!fn_info->name()) {
// If it's an mangled C++ name (?name@...) just use the name.
if (name[0] == '?') {
// TODO(benvanik): better demangling, or leave it to clients.
/*if (name[0] == '?') {
size_t at = name.find('@');
name = name.substr(1, at - 1);
}
}*/
fn_info->set_name(name.c_str());
}
} else {