Skip to content

Commit aeab093

Browse files
Yonghong Songdkruces
Yonghong Song
authored andcommitted
Fix a compilation issue with llvm20
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.
1 parent 972f479 commit aeab093

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cc/bcc_debug.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@ void SourceDebugger::dump() {
236236
{(uint64_t)FuncStart + Index, SectionID},
237237
#else
238238
(uint64_t)FuncStart + Index,
239+
#endif
240+
#if LLVM_VERSION_MAJOR >= 20
241+
false,
239242
#endif
240243
CU->getCompilationDir(),
241244
DILineInfoSpecifier::FileLineInfoKind::AbsoluteFilePath, LineInfo);

0 commit comments

Comments
 (0)