diff options
| author | Necip Fazil Yildiran <necip@google.com> | 2024-04-03 15:20:04 -0700 |
|---|---|---|
| committer | prabhukr <prabhukr@google.com> | 2024-04-03 15:20:04 -0700 |
| commit | 71a46c10cced25d66d36bb224131e75b79768397 (patch) | |
| tree | 9ebc98309a3b662205acadd38b306447e6bd4e37 /clang/lib/CodeGen/CGExpr.cpp | |
| parent | 029e1d751503268e3d8b01db769e710835c3010d (diff) | |
| parent | 4963b5cf66f47be76d1db52caab0aa83e707538e (diff) | |
[𝘀𝗽𝗿] initial versionusers/Prabhuk/sprasmprintercallgraphsection-emit-call-graph-section
Created using spr 1.3.6-beta.1
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGExpr.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp index 54432353e742..467a7cfe50e7 100644 --- a/clang/lib/CodeGen/CGExpr.cpp +++ b/clang/lib/CodeGen/CGExpr.cpp @@ -5953,6 +5953,11 @@ RValue CodeGenFunction::EmitCall(QualType CalleeType, const CGCallee &OrigCallee } } + // Set type identifier metadata of indirect calls for call graph section. + if (CGM.getCodeGenOpts().CallGraphSection && CallOrInvoke && + CallOrInvoke->isIndirectCall()) + CGM.CreateFunctionTypeMetadataForIcall(QualType(FnType, 0), CallOrInvoke); + return Call; } |
