forked from OSchip/llvm-project
Revert "[OPENMP]Do not use RTTI by default for NVPTX devices."
This reverts commit 23058f9dd4
. It breaks
builds of cuda code somehow in some cases.
This commit is contained in:
parent
313d89724c
commit
6b29aa2118
|
@ -68,8 +68,7 @@ static ToolChain::RTTIMode CalculateRTTIMode(const ArgList &Args,
|
|||
}
|
||||
|
||||
// -frtti is default, except for the PS4 CPU.
|
||||
return (Triple.isPS4CPU() || Triple.isNVPTX()) ? ToolChain::RM_Disabled
|
||||
: ToolChain::RM_Enabled;
|
||||
return (Triple.isPS4CPU()) ? ToolChain::RM_Disabled : ToolChain::RM_Enabled;
|
||||
}
|
||||
|
||||
ToolChain::ToolChain(const Driver &D, const llvm::Triple &T,
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
///
|
||||
/// Perform several driver tests for OpenMP offloading
|
||||
///
|
||||
|
||||
// REQUIRES: clang-driver
|
||||
// REQUIRES: x86-registered-target
|
||||
// REQUIRES: powerpc-registered-target
|
||||
// REQUIRES: nvptx-registered-target
|
||||
|
||||
/// ###########################################################################
|
||||
|
||||
/// PTXAS is passed -c flag by default when offloading to an NVIDIA device using OpenMP
|
||||
/// Check that the flag is passed when -fopenmp-relocatable-target is used.
|
||||
// RUN: %clangxx -### -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda \
|
||||
// RUN: -save-temps -no-canonical-prefixes %s -x c++ -c 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=CHK-RTTI %s
|
||||
|
||||
// CHK-RTTI: clang{{.*}}" "-triple" "nvptx64-nvidia-cuda"
|
||||
// CHK-RTTI-SAME: "-fno-rtti"
|
||||
|
Loading…
Reference in New Issue