[clang] f8ff3d7 - [OPENMP]Remove unused template parameter, NFC.

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 21 13:48:58 PST 2019


Author: Alexey Bataev
Date: 2019-11-21T16:42:26-05:00
New Revision: f8ff3d7ebd8499cad896b2e934fbc9d7412ba823

URL: https://github.com/llvm/llvm-project/commit/f8ff3d7ebd8499cad896b2e934fbc9d7412ba823
DIFF: https://github.com/llvm/llvm-project/commit/f8ff3d7ebd8499cad896b2e934fbc9d7412ba823.diff

LOG: [OPENMP]Remove unused template parameter, NFC.

Added: 
    

Modified: 
    clang/include/clang/Basic/OpenMPKinds.h
    clang/include/clang/Sema/Sema.h
    clang/lib/CodeGen/CGOpenMPRuntime.cpp

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Basic/OpenMPKinds.h b/clang/include/clang/Basic/OpenMPKinds.h
index 121c8bd2e48b..2621afe7afbb 100644
--- a/clang/include/clang/Basic/OpenMPKinds.h
+++ b/clang/include/clang/Basic/OpenMPKinds.h
@@ -39,8 +39,7 @@ OpenMPContextSelectorKind getOpenMPContextSelector(llvm::StringRef Str);
 llvm::StringRef getOpenMPContextSelectorName(OpenMPContextSelectorKind Kind);
 
 /// Struct to store the context selectors info.
-template <typename T, typename VectorType, typename ScoreT>
-struct OpenMPCtxSelectorData {
+template <typename VectorType, typename ScoreT> struct OpenMPCtxSelectorData {
   OpenMPContextSelectorSetKind CtxSet = OMP_CTX_SET_unknown;
   OpenMPContextSelectorKind Ctx = OMP_CTX_unknown;
   ScoreT Score;

diff  --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h
index 7d8ab59fe900..55e39a27e6c6 100644
--- a/clang/include/clang/Sema/Sema.h
+++ b/clang/include/clang/Sema/Sema.h
@@ -9315,8 +9315,7 @@ class Sema final {
   /// Struct to store the context selectors info for declare variant directive.
   using OMPCtxStringType = SmallString<8>;
   using OMPCtxSelectorData =
-      OpenMPCtxSelectorData<OMPCtxStringType, SmallVector<OMPCtxStringType, 4>,
-                            ExprResult>;
+      OpenMPCtxSelectorData<SmallVector<OMPCtxStringType, 4>, ExprResult>;
 
   /// Checks if the variant/multiversion functions are compatible.
   bool areMultiversionVariantFunctionsCompatible(

diff  --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
index 347606fc7461..c2d895b4ea4a 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -11028,7 +11028,7 @@ Address CGOpenMPRuntime::getAddressOfLocalVariable(CodeGenFunction &CGF,
 
 namespace {
 using OMPContextSelectorData =
-    OpenMPCtxSelectorData<StringRef, ArrayRef<StringRef>, llvm::APSInt>;
+    OpenMPCtxSelectorData<ArrayRef<StringRef>, llvm::APSInt>;
 using CompleteOMPContextSelectorData = SmallVector<OMPContextSelectorData, 4>;
 } // anonymous namespace
 


        


More information about the cfe-commits mailing list