]> granicus.if.org Git - clang/commit
[DebugInfo] Error out when enabling -fdebug-types-section on non-ELF target.
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 23 Jul 2018 17:50:15 +0000 (17:50 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 23 Jul 2018 17:50:15 +0000 (17:50 +0000)
commit66ee19cc1c81aa009a7fba74fc9d082268ec1e06
tree085b73169a4bde9cdf474747354a2ee323188486
parent6038d90129eb0899e5e2ccfc819e27a9e0c93ef1
[DebugInfo] Error out when enabling -fdebug-types-section on non-ELF target.

Currently, support for debug_types is only present for ELF and trying to
pass -fdebug-types-section for other targets results in a crash in the
backend. Until this is fixed, we should emit a diagnostic in the front
end when the option is passed for non-linux targets.

Differential revision: https://reviews.llvm.org/D49594

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