From 2b0f40b049e653af113f679e15ee653fb06fc56c Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 20 Aug 2020 14:11:08 -0700 Subject: [PATCH] [llvm-dwarfdump] Fix a typo: witin -> within --- llvm/test/tools/llvm-dwarfdump/X86/statistics-dwo.test | 4 ++-- llvm/test/tools/llvm-dwarfdump/X86/statistics-v3.test | 4 ++-- llvm/test/tools/llvm-dwarfdump/X86/statistics.ll | 4 ++-- llvm/tools/llvm-dwarfdump/Statistics.cpp | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/llvm/test/tools/llvm-dwarfdump/X86/statistics-dwo.test b/llvm/test/tools/llvm-dwarfdump/X86/statistics-dwo.test index 1b8e63986758..619a280eae80 100644 --- a/llvm/test/tools/llvm-dwarfdump/X86/statistics-dwo.test +++ b/llvm/test/tools/llvm-dwarfdump/X86/statistics-dwo.test @@ -82,8 +82,8 @@ CHECK: "#source variables with location":22 CHECK: "#call site entries":7 CHECK: "sum_all_variables(#bytes in parent scope)":2817 CHECK: "sum_all_variables(#bytes in parent scope covered by DW_AT_location)":1160 -CHECK: "#bytes witin functions":594 -CHECK: "#bytes witin inlined functions":345 +CHECK: "#bytes within functions":594 +CHECK: "#bytes within inlined functions":345 CHECK: "#params":12 CHECK: "#params with source location":12 CHECK: "#params with type":12 diff --git a/llvm/test/tools/llvm-dwarfdump/X86/statistics-v3.test b/llvm/test/tools/llvm-dwarfdump/X86/statistics-v3.test index 257849b46f3c..fa6ce5b5a24e 100644 --- a/llvm/test/tools/llvm-dwarfdump/X86/statistics-v3.test +++ b/llvm/test/tools/llvm-dwarfdump/X86/statistics-v3.test @@ -77,8 +77,8 @@ CHECK: "#source variables with location":24 CHECK: "#call site entries":8 CHECK: "sum_all_variables(#bytes in parent scope)":3072 CHECK: "sum_all_variables(#bytes in parent scope covered by DW_AT_location)":1188 -CHECK: "#bytes witin functions":636 -CHECK: "#bytes witin inlined functions":388 +CHECK: "#bytes within functions":636 +CHECK: "#bytes within inlined functions":388 CHECK: "#params":13 CHECK: "#params with source location":13 CHECK: "#params with type":13 diff --git a/llvm/test/tools/llvm-dwarfdump/X86/statistics.ll b/llvm/test/tools/llvm-dwarfdump/X86/statistics.ll index bd717dfc85b3..e86f4333f06a 100644 --- a/llvm/test/tools/llvm-dwarfdump/X86/statistics.ll +++ b/llvm/test/tools/llvm-dwarfdump/X86/statistics.ll @@ -52,8 +52,8 @@ ; CHECK-NOT: "sum_all_local_vars(#bytes in parent scope covered by DW_AT_location)":0 ; CHECK-NOT: "sum_all_local_vars(#bytes in parent scope covered by DW_AT_location)":[[BYTES]] ; CHECK: "sum_all_local_vars(#bytes in parent scope covered by DW_AT_location)": -; CHECK: "#bytes witin functions":[[FUNCSIZE:[0-9]+]] -; CHECK: "#bytes witin inlined functions":[[INLINESIZE:[0-9]+]] +; CHECK: "#bytes within functions":[[FUNCSIZE:[0-9]+]] +; CHECK: "#bytes within inlined functions":[[INLINESIZE:[0-9]+]] ; CHECK: "#bytes in __debug_info":459 ; CHECK: "#bytes in __debug_loc":35 ; CHECK: "#bytes in __debug_abbrev":384 diff --git a/llvm/tools/llvm-dwarfdump/Statistics.cpp b/llvm/tools/llvm-dwarfdump/Statistics.cpp index e1eeaf778d53..41600c6222ea 100644 --- a/llvm/tools/llvm-dwarfdump/Statistics.cpp +++ b/llvm/tools/llvm-dwarfdump/Statistics.cpp @@ -648,8 +648,8 @@ bool dwarfdump::collectStatsForObjectFile(ObjectFile &Obj, DWARFContext &DICtx, "DW_OP_entry_value)", GlobalStats.LocalVarScopeEntryValueBytesCovered); - printDatum(J, "#bytes witin functions", GlobalStats.FunctionSize); - printDatum(J, "#bytes witin inlined functions", + printDatum(J, "#bytes within functions", GlobalStats.FunctionSize); + printDatum(J, "#bytes within inlined functions", GlobalStats.InlineFunctionSize); // Print the summary for formal parameters.