aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGValue.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-08-21 03:29:54 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-08-21 03:29:54 +0000
commit99ad7df957b2dc24df55ceff3e05a07ab5959fbd (patch)
treecf6fe2e6948f897e6445e2d4ce16ed001d6f6194 /lib/CodeGen/CGValue.h
parentea619177353e0a9f35b7d926a92df0e103515dbe (diff)
IRgen/CGValue: Add getQuals(), so qualifiers can be modified on an LValue.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111719 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGValue.h')
-rw-r--r--lib/CodeGen/CGValue.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CGValue.h b/lib/CodeGen/CGValue.h
index b190cc8cc0..00867c5276 100644
--- a/lib/CodeGen/CGValue.h
+++ b/lib/CodeGen/CGValue.h
@@ -197,6 +197,9 @@ public:
Expr *getBaseIvarExp() const { return BaseIvarExp; }
void setBaseIvarExp(Expr *V) { BaseIvarExp = V; }
+ const Qualifiers &getQuals() const { return Quals; }
+ Qualifiers &getQuals() { return Quals; }
+
unsigned getAddressSpace() const { return Quals.getAddressSpace(); }
unsigned getAlignment() const { return Alignment; }