Skip to content
Snippets Groups Projects
Commit d402939b authored by Chris Lattner's avatar Chris Lattner
Browse files

add some helpers

llvm-svn: 40901
parent d64584f6
No related branches found
No related tags found
No related merge requests found
...@@ -109,6 +109,12 @@ public: ...@@ -109,6 +109,12 @@ public:
bool isRestrictQualified() const { bool isRestrictQualified() const {
return ThePtr & Restrict; return ThePtr & Restrict;
} }
/// addConst/addVolatile/addRestrict - add the specified type qual to this
/// QualType.
void addConst() { ThePtr |= Const; }
void addVolatile() { ThePtr |= Volatile; }
void addRestrict() { ThePtr |= Restrict; }
QualType getQualifiedType(unsigned TQs) const { QualType getQualifiedType(unsigned TQs) const {
return QualType(getTypePtr(), TQs); return QualType(getTypePtr(), TQs);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment