diff options
author | Prabhu Rajasekaran <prabhukr@google.com> | 2025-07-23 10:11:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-23 10:11:20 -0700 |
commit | 7baf4bdd164cad61f8f3e34ed833a695c4033250 (patch) | |
tree | d66a74a611db43cb15e575b002c6eae262d3995e /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 9a12037c573e884b8f027654b56a6151bd5c0a56 (diff) | |
download | llvm-7baf4bdd164cad61f8f3e34ed833a695c4033250.zip llvm-7baf4bdd164cad61f8f3e34ed833a695c4033250.tar.gz llvm-7baf4bdd164cad61f8f3e34ed833a695c4033250.tar.bz2 |
[llvm] Add CalleeTypeIds field to CallSiteInfo
Introducing `EnableCallGraphSection` target option to add
CalleeTypeIds field in CallSiteInfo. Read the callee type ids
in and out by the MIR parser/printer.
Reviewers: ilovepi
Reviewed By: ilovepi
Pull Request: https://github.com/llvm/llvm-project/pull/87574
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 429a17a..468849c7 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -920,7 +920,7 @@ MachineFunction::getCallSiteInfo(const MachineInstr *MI) { assert(MI->isCandidateForAdditionalCallInfo() && "Call site info refers only to call (MI) candidates"); - if (!Target.Options.EmitCallSiteInfo) + if (!Target.Options.EmitCallSiteInfo && !Target.Options.EmitCallGraphSection) return CallSitesInfo.end(); return CallSitesInfo.find(MI); } |