From 9dc88879338a8d9d3d749f89dac83af8902fd56a Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Mon, 2 Sep 2019 21:13:28 -0400 Subject: [PATCH] rename is_mangle_char_posix to is_mangle_char_itanium No behavior change. --- demumble.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demumble.cc b/demumble.cc index aa68e28..835dbbe 100644 --- a/demumble.cc +++ b/demumble.cc @@ -34,7 +34,7 @@ static void print_demangled(const char* format, const char* s) { } } -static bool is_mangle_char_posix(char c) { +static bool is_mangle_char_itanium(char c) { return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '_' || c == '$'; } @@ -116,7 +116,7 @@ int main(int argc, char* argv[]) { while (cur + n_sym != end && is_mangle_char_win(cur[n_sym])) ++n_sym; else if (is_plausible_itanium_prefix(cur)) - while (cur + n_sym != end && is_mangle_char_posix(cur[n_sym])) + while (cur + n_sym != end && is_mangle_char_itanium(cur[n_sym])) ++n_sym; else { if (print_mode == kPrintAll)