This allows the option to affect the LTO output. Module::Max helps to generate debug info for all modules in the same format.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
@aprantl - mind having a look at this/signing off as well, if you're OK with it? Since it's a core metadata change, wouldn't mind some extra eyes on it.
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | ||
---|---|---|
396 | Once this patch is accepted, it's probably worth going back and removing the MCOption? (I don't think we have MCOptions for other debug related module metadata, like the DWARF version?) |
Thank you, @dblaikie!
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | ||
---|---|---|
396 | Exactly for the DWARF version, there is a similar option, please take a look at line 388. |
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | ||
---|---|---|
396 | Oh, nah, that's fine to keep around like the DWARF version for LLVM testing purposes (easier to write a test with a single .ll file and different RUN lines to test both 32 and 64 behavior, without having to have two IR Files, or rewrite the IR file to switch its format, etc) |
Once this patch is accepted, it's probably worth going back and removing the MCOption? (I don't think we have MCOptions for other debug related module metadata, like the DWARF version?)