diff options
Diffstat (limited to 'clang/lib/Sema/SemaCUDA.cpp')
-rw-r--r-- | clang/lib/Sema/SemaCUDA.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/clang/lib/Sema/SemaCUDA.cpp b/clang/lib/Sema/SemaCUDA.cpp index eecea94..73d1908 100644 --- a/clang/lib/Sema/SemaCUDA.cpp +++ b/clang/lib/Sema/SemaCUDA.cpp @@ -211,20 +211,6 @@ Sema::IdentifyCUDAPreference(const FunctionDecl *Caller, llvm_unreachable("All cases should've been handled by now."); } -template <typename AttrT> static bool hasImplicitAttr(const FunctionDecl *D) { - if (!D) - return false; - if (auto *A = D->getAttr<AttrT>()) - return A->isImplicit(); - return D->isImplicit(); -} - -bool Sema::IsCUDAImplicitHostDeviceFunction(const FunctionDecl *D) { - bool IsImplicitDevAttr = hasImplicitAttr<CUDADeviceAttr>(D); - bool IsImplicitHostAttr = hasImplicitAttr<CUDAHostAttr>(D); - return IsImplicitDevAttr && IsImplicitHostAttr; -} - void Sema::EraseUnwantedCUDAMatches( const FunctionDecl *Caller, SmallVectorImpl<std::pair<DeclAccessPair, FunctionDecl *>> &Matches) { |