diff options
Diffstat (limited to 'clang/lib/CodeGen/CGValue.h')
-rw-r--r-- | clang/lib/CodeGen/CGValue.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGValue.h b/clang/lib/CodeGen/CGValue.h index dbd9dadb14e..318ee55ac97 100644 --- a/clang/lib/CodeGen/CGValue.h +++ b/clang/lib/CodeGen/CGValue.h @@ -169,6 +169,10 @@ public: bool isVolatileQualified() const { return Volatile; } bool isRestrictQualified() const { return Restrict; } + unsigned getQualifiers() const { + return (Volatile ? QualType::Volatile : 0) | + (Restrict ? QualType::Restrict : 0); + } bool isObjCIvar() const { return Ivar; } bool isObjCWeak() const { return ObjCType == Weak; } @@ -275,8 +279,8 @@ public: SetQualifiers(Qualifiers,R); return R; } - static LValue MakeKVCRef(const ObjCKVCRefExpr *E, - unsigned Qualifiers) { + + static LValue MakeKVCRef(const ObjCKVCRefExpr *E, unsigned Qualifiers) { LValue R; R.LVType = KVCRef; R.KVCRefExpr = E; |