diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2018-07-27 19:45:14 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2018-07-27 19:45:14 +0000 |
commit | b83b4e40fe430524aa215005de3cd751e32864b7 (patch) | |
tree | 90b0dbcb3f02eff3aed765031224704f6a8bd64c /clang/lib/Driver/ToolChains/Cuda.h | |
parent | c1d4311c1b2c9adaa9b28e2e5316fd02171e17a2 (diff) | |
download | bcm5719-llvm-b83b4e40fe430524aa215005de3cd751e32864b7.tar.gz bcm5719-llvm-b83b4e40fe430524aa215005de3cd751e32864b7.zip |
[DEBUGINFO] Disable unsupported debug info options for NVPTX target.
Summary:
Some targets support only default set of the debug options and do not
support additional debug options, like NVPTX target. Patch introduced
virtual function supportsDebugInfoOptions() that can be overloaded
by the toolchain, checks if the target supports some debug
options and emits warning when an unsupported debug option is
found.
Reviewers: echristo
Subscribers: aprantl, JDevlieghere, cfe-commits
Differential Revision: https://reviews.llvm.org/D49148
llvm-svn: 338155
Diffstat (limited to 'clang/lib/Driver/ToolChains/Cuda.h')
-rw-r--r-- | clang/lib/Driver/ToolChains/Cuda.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChains/Cuda.h b/clang/lib/Driver/ToolChains/Cuda.h index 99d5a4a628c..01580cb6692 100644 --- a/clang/lib/Driver/ToolChains/Cuda.h +++ b/clang/lib/Driver/ToolChains/Cuda.h @@ -158,6 +158,7 @@ public: bool isPIEDefault() const override { return false; } bool isPICDefaultForced() const override { return false; } bool SupportsProfiling() const override { return false; } + bool supportsDebugInfoOption(const llvm::opt::Arg *A) const override; bool IsMathErrnoDefault() const override { return false; } void AddCudaIncludeArgs(const llvm::opt::ArgList &DriverArgs, |