diff options
author | EgorBo <egorbo@gmail.com> | 2019-12-03 18:13:48 +0300 |
---|---|---|
committer | EgorBo <egorbo@gmail.com> | 2019-12-03 18:13:48 +0300 |
commit | 5f58bb0959d6a50f8577e52b715f46185ab8e429 (patch) | |
tree | 66a69b371bf7c93a0ce0684ab96174b7570eee13 /netcore | |
parent | ea0824cb2276ca756f667219ce44a135a0ff4318 (diff) |
Improve TryParseFunctionName in jitdiff
Diffstat (limited to 'netcore')
-rw-r--r-- | netcore/tools/jitdiff/jitdiff.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/netcore/tools/jitdiff/jitdiff.cs b/netcore/tools/jitdiff/jitdiff.cs index 4d58f08e753..4daab1da58b 100644 --- a/netcore/tools/jitdiff/jitdiff.cs +++ b/netcore/tools/jitdiff/jitdiff.cs @@ -117,7 +117,13 @@ namespace JitDiffTools // depends on objdump, let's use the whole line as a name if it ends with `:` if (str.EndsWith (':')) { - name = Regex.Replace(str, @"(?i)\b([a-f0-9]+){8,16}\b", m => "0xD1FFAB1E"); + // Possible formats: + // 1) func_name: + // 2) p_%var%_func_name: + // 3) %var% <func_name>: + // 4) %var% <p_%var%_func_name>: + name = Regex.Replace (str, @"\b([a-f0-9]+)\b", m => ""); + name = Regex.Replace (name, @"(p_\d+_)?", m => ""); return true; } name = null; |