[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)
Paul Kirth via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Dec 11 09:41:37 PST 2024
================
@@ -173,6 +173,32 @@ class AsmPrinter : public MachineFunctionPass {
/// Emit comments in assembly output if this is true.
bool VerboseAsm;
+ /// Store symbols and type identifiers used to create call graph section
+ /// entries related to a function.
+ struct FunctionInfo {
+ /// Numeric type identifier used in call graph section for indirect calls
+ /// and targets.
+ using CGTypeId = uint64_t;
+
+ /// Enumeration of function kinds, and their mapping to function kind values
+ /// stored in call graph section entries.
+ /// Must match the enum in llvm/tools/llvm-objdump/llvm-objdump.cpp.
+ enum FunctionKind {
----------------
ilovepi wrote:
can we use a scoped enum? I think we prefer those in general, since we get better diagnostics.
https://github.com/llvm/llvm-project/pull/87576
More information about the llvm-branch-commits
mailing list