[PATCH] D132580: [Coro][Debuginfo] Add debug info to `_NoopCoro_ResumeDestroy` function
Adrian Vogelsgesang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 24 15:49:46 PDT 2022
avogelsgesang added inline comments.
================
Comment at: llvm/lib/Transforms/Coroutines/CoroEarly.cpp:129
+ StringRef Producer = "LLVM Version " LLVM_VERSION_STRING;
+ auto *CU =
+ DB.createCompileUnit(dwarf::DW_LANG_Mips_Assembler, FileNode, Producer,
----------------
aprantl wrote:
> Is there a specific reason why you want to create a new CU here? I would just use the one from the function we're currently processing and mark the new DISubprogram as artificial.
not really, it just felt the most natural to me. The user didn't write that function anywhere, hence I thought: the file name should read "<llvm-instrinsics>". Also, it seems there can be multiple compilation units attached to a single LLVM module, and I didn't know how to determine the one to which I should add this function
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132580/new/
https://reviews.llvm.org/D132580
More information about the llvm-commits
mailing list