summaryrefslogtreecommitdiff
path: root/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2018-09-05 17:10:30 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2018-09-05 17:10:30 +0000
commit877be362f8f5568ec0790d9a1155f82df7527b79 (patch)
tree7e6191ee03205c2df5868c4adbf6a029fdafed75 /lib/Frontend/CompilerInvocation.cpp
parente680dc2798ea4b99017b79bc8ccab1125942c0e6 (diff)
downloadclang-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.cpp5
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)) {