[PATCH] D100567: BPF: emit debuginfo for Function of DeclRefExpr if requested
Yonghong Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 18 11:27:08 PDT 2021
yonghong-song added a comment.
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.
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