[llvm] [BPF] Handle unreachable with a kfunc call (PR #131731)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 22 09:13:22 PDT 2025
================
@@ -1622,6 +1627,25 @@ void BTFDebug::endModule() {
// Collect global types/variables except MapDef globals.
processGlobals(false);
+ // Create a BTF entry for func BPF_UNREACHABLE.
----------------
yonghong-song wrote:
I looked at the patch. Generally looks better as it removed a couple "hack" in BTFDebug.cpp. I would prefer to generate DISubprogram unless M->debug_compile_units() is non-NULL, that is, dwarf is already enabled. I will make necessary adjustment based on your code.
https://github.com/llvm/llvm-project/pull/131731
More information about the llvm-commits
mailing list