llvm.org GIT mirror llvm / 020a696
[llvm-nm] Print out N_COLD_FUNC as "cold func" Per post-commit feedback from Mike, have llvm-nm print out this symbol attribute as "[cold func]". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352258 91177308-0d34-0410-b5e6-96231b3b80d8 Vedant Kumar 1 year, 4 months ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
0 RUN: llc -O0 -mtriple=aarch64-apple-ios %p/Inputs/cold-func.ll -filetype=obj -o %t.aarch64.o
11 RUN: llvm-nm -m %t.aarch64.o | FileCheck %s
22
3 CHECK: [cold] _cold_func
3 CHECK: [cold func] _cold_func
556556 if (Filetype == MachO::MH_OBJECT &&
557557 ((NType & MachO::N_TYPE) != MachO::N_UNDF) &&
558558 (NDesc & MachO::N_COLD_FUNC) == MachO::N_COLD_FUNC)
559 outs() << "[cold] ";
559 outs() << "[cold func] ";
560560
561561 if ((NDesc & MachO::N_ARM_THUMB_DEF) == MachO::N_ARM_THUMB_DEF)
562562 outs() << "[Thumb] ";