diff options
author | John McCall <rjmccall@apple.com> | 2012-02-08 00:46:36 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2012-02-08 00:46:36 +0000 |
commit | 200fa53fd420aa8369586f569dbece04930ad6a3 (patch) | |
tree | 8cba3653f5d0a0caa25a13f020c1ec027e9c420c /lib/AST/ItaniumMangle.cpp | |
parent | 531b1a91fbbf75dc2ab54f609e304376753e1679 (diff) |
Revise the SplitQualType interface to make it its own thing instead of
a typedef of std::pair. This slightly improves type-safety, but mostly
makes code using it clearer to read as well as making it possible to add
methods to the type.
Add such a method for efficiently single-step desugaring a split type.
Add a method to single-step desugaring a locally-unqualified type.
Implement both the SplitQualType and QualType methods in terms of that.
Also, fix a typo ("ObjCGLifetime").
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ItaniumMangle.cpp')
-rw-r--r-- | lib/AST/ItaniumMangle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/ItaniumMangle.cpp b/lib/AST/ItaniumMangle.cpp index 59192428b8..7df8f6fc6b 100644 --- a/lib/AST/ItaniumMangle.cpp +++ b/lib/AST/ItaniumMangle.cpp @@ -1655,8 +1655,8 @@ void CXXNameMangler::mangleType(QualType T) { } while (true); } SplitQualType split = T.split(); - Qualifiers quals = split.second; - const Type *ty = split.first; + Qualifiers quals = split.Quals; + const Type *ty = split.Ty; bool isSubstitutable = quals || !isa<BuiltinType>(T); if (isSubstitutable && mangleSubstitution(T)) |