Skip to content

Commit

Permalink
Fix a compilation issue with llvm20
Browse files Browse the repository at this point in the history
The upstream commit
  llvm/llvm-project#82240
introduced a func signature change for func getFileLineInfoForAddress().
Add proper change to accommodate llvm20 need for additional func
arguments.
  • Loading branch information
Yonghong Song authored and yonghong-song committed Sep 4, 2024
1 parent ebdd760 commit d472825
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cc/bcc_debug.cc
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ void SourceDebugger::dump() {
{(uint64_t)FuncStart + Index, SectionID},
#else
(uint64_t)FuncStart + Index,
#endif
#if LLVM_VERSION_MAJOR >= 20
false,
#endif
CU->getCompilationDir(),
DILineInfoSpecifier::FileLineInfoKind::AbsoluteFilePath, LineInfo);
Expand Down

0 comments on commit d472825

Please sign in to comment.