https://github.com/abidh commented:
Please help me understand one thing. When we give `-grecord-command-line` on command line, It gets translated to `-dwarf-debug-flags` for fc1. But from where does it get the command line options that it will record. I tried the following on the clang `clang -grecord-command-line test.c -o /tmp/tmp -g -O0` and I see the following in the DW_AT_producer (The string had full path of clang which I removed to keep it short here) `clang version 23.0.0git (https://github.com/llvm/llvm-project.git b82c7fc65229c8b2b6a964f023f6ec59b3cf9210) clang-23 -grecord-command-line test.c -o /tmp/tmp -g -O0` So I was wondering how we will get "-grecord-command-line test.c -o /tmp/tmp -g -O0" in the string that we pass to `AddDebugInfo` pass. https://github.com/llvm/llvm-project/pull/181686 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
