]> granicus.if.org Git - clang/commit
[Driver] Don't add -dwarf-column-info when using -gcodeview on non-msvc targets
authorMartin Storsjo <martin@martin.st>
Tue, 8 May 2018 20:55:23 +0000 (20:55 +0000)
committerMartin Storsjo <martin@martin.st>
Tue, 8 May 2018 20:55:23 +0000 (20:55 +0000)
commit055b5467343b9c8aa9ebc18a8430304df2df6c66
treef0cfc2443c814051d0a236678beec770fc334a19
parente21d52e57e958c022cc3eaf048b26ac865aa4e0b
[Driver] Don't add -dwarf-column-info when using -gcodeview on non-msvc targets

-dwarf-column-info is omitted if -gcodeview is specified for msvc
targets at the moment, but since -gcodeview is an option that can be
specified for any target, there's little reason to restrict this
handling to msvc targets.

This allows getting proper codeview debug info by passing -gcodeview
for e.g. MinGW targets as well.

Differential Revision: https://reviews.llvm.org/D46287

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@331807 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Clang.cpp
test/Driver/codeview-column-info.c