diff options
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r-- | lib/Sema/SemaType.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index 7049a301f7..e898782f31 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -835,17 +835,3 @@ bool Sema::DiagnoseIncompleteType(SourceLocation Loc, QualType T, unsigned diag, return true; } - -/// \brief Determine whether the given types are equivalent. -bool Sema::hasSameType(QualType T1, QualType T2) { - return Context.getCanonicalType(T1) == Context.getCanonicalType(T2); -} - -/// \brief Determine whether the given types are equivalent after -/// cvr-qualifiers have been removed. -bool Sema::hasSameUnqualifiedType(QualType T1, QualType T2) { - T1 = Context.getCanonicalType(T1); - T2 = Context.getCanonicalType(T2); - return T1.getUnqualifiedType() == T2.getUnqualifiedType(); -} - |