summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-06-26 23:26:37 +0000
committerChris Lattner <sabre@nondot.org>2010-06-26 23:26:37 +0000
commit41c9c0ea32751d71f026acedd1241432b37dcc8e (patch)
tree7b21ee73281ecc446614cbbf76b9b4fc56759bd7 /include
parentae925f5c1eb494785e1d96d2f36d94136186524d (diff)
downloadllvm-41c9c0ea32751d71f026acedd1241432b37dcc8e.tar.gz
llvm-41c9c0ea32751d71f026acedd1241432b37dcc8e.tar.bz2
llvm-41c9c0ea32751d71f026acedd1241432b37dcc8e.tar.xz
add some named accessors for StoreInst
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106969 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Instructions.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index b7b7fce7a5..6e6a1a6a55 100644
--- a/include/llvm/Instructions.h
+++ b/include/llvm/Instructions.h
@@ -235,6 +235,9 @@ public:
void setAlignment(unsigned Align);
+ Value *getValueOperand() { return getOperand(0); }
+ const Value *getValueOperand() const { return getOperand(0); }
+
Value *getPointerOperand() { return getOperand(1); }
const Value *getPointerOperand() const { return getOperand(1); }
static unsigned getPointerOperandIndex() { return 1U; }