By default, 'clang' emits dwarf and 'clang-cl' emits codeview. You can
force emission of one or both by passing -gcodeview and -gdwarf to
either driver.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Driver/Tools.cpp | ||
---|---|---|
5276 ↗ | (On Diff #31287) | Would just Args.hasArg(options::OPT__SLASH_Z7) work? |
test/CodeGen/dwarf-version.c | ||
11 ↗ | (On Diff #31287) | Maybe add %clang_cl invocations here? |
test/Driver/cl-options.c | ||
365 ↗ | (On Diff #31287) | Is there a test for /Zi in here to update as well? |
373 ↗ | (On Diff #31287) | Not sure if this list is exhaustive anymore, but might still be worth adding -gdwarf and -gcodeview here to codify that they're supposed to be exposed in clang-cl. |
test/CodeGen/dwarf-version.c | ||
---|---|---|
11 ↗ | (On Diff #31287) | I'd rather keep the %clang_cl tests in test/Driver, though. |