summaryrefslogtreecommitdiff
path: root/include/llvm/iMemory.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-14 06:07:58 +0000
committerChris Lattner <sabre@nondot.org>2001-07-14 06:07:58 +0000
commitdc4c3f2f5fc6132885d590631b54de0be2c659be (patch)
tree9d7577e07b0c344e83f9e36f0e19c1d7a106830e /include/llvm/iMemory.h
parent49fec9638be606ab0d654bf5b03f56d179f0d33e (diff)
downloadllvm-dc4c3f2f5fc6132885d590631b54de0be2c659be.tar.gz
llvm-dc4c3f2f5fc6132885d590631b54de0be2c659be.tar.bz2
llvm-dc4c3f2f5fc6132885d590631b54de0be2c659be.tar.xz
Made the following changes:
* ValueHolder became a 3 argument template. This allows for BasicBlock to use the value holder arg as a typesafe parent pointer. * SymTabValue no longer inherits from Value * Method does not inherit from only SymTabValue. Now it inherits from both STV & Value. * Module does not inherit from only SymTabValue. Now it inherits from both STV & Value. * Updated the SymTabValue.h file to reference SymTabValue instead of STDef in several places * Added isArraySelector & isStructSelector to GetElementPtr instruction git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/iMemory.h')
-rw-r--r--include/llvm/iMemory.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/iMemory.h b/include/llvm/iMemory.h
index fe045d7266..92d6a6c80d 100644
--- a/include/llvm/iMemory.h
+++ b/include/llvm/iMemory.h
@@ -178,6 +178,9 @@ public:
const string &Name = "");
virtual Instruction *clone() const { return new GetElementPtrInst(*this); }
virtual const char *getOpcodeName() const { return "getelementptr"; }
+
+ inline bool isArraySelector() const { return !isStructSelector(); }
+ bool isStructSelector() const;
};
#endif // LLVM_IMEMORY_H