aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2023-02-14 21:15:30 -0800
committerMehdi Amini <joker.eph@gmail.com>2023-02-14 22:43:26 -0800
commit72429a42ac33564fa82449d99dc234da32a05498 (patch)
tree49453f7e009a40d1e4a51ad06a1545b19e46a031 /clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
parentd7ca25342ff6341d99f5075fdbcb8a29298befe8 (diff)
downloadllvm-72429a42ac33564fa82449d99dc234da32a05498.zip
llvm-72429a42ac33564fa82449d99dc234da32a05498.tar.gz
llvm-72429a42ac33564fa82449d99dc234da32a05498.tar.bz2
Add a pass that builds a debug info scope for LLVMFuncOp (adding a DISubprogramAttr)
This may be seen as a hack, but it allows for any piece of MLIR to be able to end up with DWARF debug info through LLVM. Assuming the operations in the function have location such as FileLineCol, this provides backtraces with line tables and allows to step in a debugger. That makes this pass a perfect companion to -snapshot-op-locations It was also the default behavior of MLIR to LLVM IR translation until MLIR got support for proper debug info attributes. Differential Revision: https://reviews.llvm.org/D144069
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp')
0 files changed, 0 insertions, 0 deletions