[PATCH] D100567: BPF: emit debuginfo for Function of DeclRefExpr if requested
David Blaikie via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 18 20:47:39 PDT 2021
dblaikie added a comment.
In D100567#2697415 <https://reviews.llvm.org/D100567#2697415>, @yonghong-song wrote:
> To answer one of your questions above, if there is a function definition before, dyn_cast<llvm::Function>(...) will return nullptr. I tried starting from "Value" class and found dyn_cast to llvm::ConstantExpr will result in a non-null object, but I did not trace down further with subclasses of llvm::ConstantExpr.
Might be worth understanding what's going on here before committing this patch, as it might not be the right direction.
(perhaps the right thing to do is to look at the AST expression rather than whatever IR entity is created for it?)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100567/new/
https://reviews.llvm.org/D100567
More information about the cfe-commits
mailing list