diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2018-09-05 17:10:30 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2018-09-05 17:10:30 +0000 |
commit | 877be362f8f5568ec0790d9a1155f82df7527b79 (patch) | |
tree | 7e6191ee03205c2df5868c4adbf6a029fdafed75 /lib/Frontend/CompilerInvocation.cpp | |
parent | e680dc2798ea4b99017b79bc8ccab1125942c0e6 (diff) | |
download | clang-877be362f8f5568ec0790d9a1155f82df7527b79.tar.gz |
[OPENMP][NVPTX] Disable runtime-type info for CUDA devices.
RTTI is not supported by the NVPTX target.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@341483 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 5210314493..7a0e78fba6 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -2650,6 +2650,11 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, Opts.Exceptions = 0; Opts.CXXExceptions = 0; } + // NVPTX does not support RTTI. + if (Opts.OpenMPIsDevice && T.isNVPTX()) { + Opts.RTTI = 0; + Opts.RTTIData = 0; + } // Get the OpenMP target triples if any. if (Arg *A = Args.getLastArg(options::OPT_fopenmp_targets_EQ)) { |