瀏覽代碼

[spirv] Remove unused MapInfo struct.

Ehsan Nasiri 6 年之前
父節點
當前提交
67bab1ffdc
共有 1 個文件被更改,包括 0 次插入14 次删除
  1. 0 14
      tools/clang/include/clang/SPIRV/SPIRVContext.h

+ 0 - 14
tools/clang/include/clang/SPIRV/SPIRVContext.h

@@ -42,20 +42,6 @@ struct StorageClassDenseMapInfo {
   }
 };
 
-// Provides DenseMapInfo for QualType so that we can use it key to DenseMap.
-//
-// Mostly from DenseMapInfo<unsigned> in DenseMapInfo.h.
-struct QualTypeDenseMapInfo {
-  static inline QualType getEmptyKey() { return {}; }
-  static inline QualType getTombstoneKey() { return {}; }
-  static unsigned getHashValue(const QualType &Val) {
-    return llvm::hash_combine(Val.getTypePtr(), Val.getCVRQualifiers());
-  }
-  static bool isEqual(const QualType &LHS, const QualType &RHS) {
-    return LHS == RHS;
-  }
-};
-
 // Provides DenseMapInfo for ArrayType so we can create a DenseSet of array
 // types.
 struct ArrayTypeMapInfo {