Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/CodeGen/AsmPrinter/AsmPrinter.cpp | ||
---|---|---|
307–308 | Please fix style. |
I have a related question: Does it make sense to make -gcodeview the default for Windows COFF targets (both arm/arm64)? ie: clang would internally add -gcodeview if -g is passed.
lib/CodeGen/AsmPrinter/AsmPrinter.cpp | ||
---|---|---|
307–308 | The old way of doing this supported emitting both dwarf and CV, which we briefly considered to be interesting. There isn't any real use case for it, but I think I'd prefer it if these things were independent. We shouldn't have a dwarf version flag if the frontend wants us to emit codeview. |
>> The old way of doing this supported emitting both dwarf and CV, which we briefly considered to be interesting. There isn't any real use case for it, but I think I'd prefer it if these things were independent. We shouldn't have a dwarf version flag if the frontend wants us to emit codeview.
@rnk So you mean adding an "else if" here is fine or should I revert this to the old way?
lib/CodeGen/AsmPrinter/AsmPrinter.cpp | ||
---|---|---|
308 | Hrm, why isn't this just if (MMI->getModule()->getDwarfVersion()) ? |
lib/CodeGen/AsmPrinter/AsmPrinter.cpp | ||
---|---|---|
308 | In order to emit CodeView info for COFF, we need to pass -g -gcodeview. I wanted to make this an else-if since otherwise it will always emit Dwarf info as well (due to the presence of -g). |
lib/CodeGen/AsmPrinter/AsmPrinter.cpp | ||
---|---|---|
308 | I don't think that'll happen, I don't see any "Dwarf Version" metadata when I run clang -S -emit-llvm -g -gcodeview t.c -o -. |
Please fix style.