Page MenuHomePhabricator

[llvm-objdump][CallGraphInfo][NFC] Introduce FunctionKind enum
AcceptedPublic

Authored by necipfazil on Jul 28 2021, 9:52 PM.

Details

Summary

Add FunctionKind enumeration for mapping function kinds to values from
.callgraph section.

This will be used in the upcoming patches where the .callgraph section is
parsed.

Patch 5/6: Extract call graph information from binary

Original RFC: https://lists.llvm.org/pipermail/llvm-dev/2021-June/151044.html
Updated RFC: https://lists.llvm.org/pipermail/llvm-dev/2021-July/151739.html

Diff Detail

Unit TestsFailed

TimeTest
70 msx64 windows > LLVM.tools/llvm-objdump/ELF::call-graph-info-warn-no-callgraph-section.test
Script: -- : 'RUN: at line 3'; c:\ws\w2\llvm-project\premerge-checks\build\bin\llvm-mc.exe C:\ws\w2\llvm-project\premerge-checks\llvm\test\tools\llvm-objdump\ELF\call-graph-info-warn-no-callgraph-section.test -filetype=obj -triple=x86_64-pc-linux -o C:\ws\w2\llvm-project\premerge-checks\build\test\tools\llvm-objdump\ELF\Output\call-graph-info-warn-no-callgraph-section.test.tmp

Event Timeline

necipfazil created this revision.Jul 28 2021, 9:52 PM
necipfazil requested review of this revision.Jul 28 2021, 9:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 28 2021, 9:52 PM
morehouse accepted this revision.Jul 29 2021, 3:40 PM
morehouse added inline comments.
llvm/tools/llvm-objdump/llvm-objdump.cpp
226
This revision is now accepted and ready to land.Jul 29 2021, 3:40 PM
necipfazil marked an inline comment as done.

Fix docs

morehouse accepted this revision.Jul 29 2021, 4:07 PM