diff --git a/llvm/test/tools/llvm-nm/AArch64/macho-cold.test b/llvm/test/tools/llvm-nm/AArch64/macho-cold.test index a07f5d27d144..590713f6a8d6 100644 --- a/llvm/test/tools/llvm-nm/AArch64/macho-cold.test +++ b/llvm/test/tools/llvm-nm/AArch64/macho-cold.test @@ -1,4 +1,4 @@ RUN: llc -O0 -mtriple=aarch64-apple-ios %p/Inputs/cold-func.ll -filetype=obj -o %t.aarch64.o RUN: llvm-nm -m %t.aarch64.o | FileCheck %s -CHECK: [cold] _cold_func +CHECK: [cold func] _cold_func diff --git a/llvm/tools/llvm-nm/llvm-nm.cpp b/llvm/tools/llvm-nm/llvm-nm.cpp index f81e909c924a..83620778359b 100644 --- a/llvm/tools/llvm-nm/llvm-nm.cpp +++ b/llvm/tools/llvm-nm/llvm-nm.cpp @@ -557,7 +557,7 @@ static void darwinPrintSymbol(SymbolicFile &Obj, SymbolListT::iterator I, if (Filetype == MachO::MH_OBJECT && ((NType & MachO::N_TYPE) != MachO::N_UNDF) && (NDesc & MachO::N_COLD_FUNC) == MachO::N_COLD_FUNC) - outs() << "[cold] "; + outs() << "[cold func] "; if ((NDesc & MachO::N_ARM_THUMB_DEF) == MachO::N_ARM_THUMB_DEF) outs() << "[Thumb] ";