diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-21 02:47:59 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-21 02:47:59 +0000 |
commit | f53c371983908f02678b0e12c5d18466dcc70ffd (patch) | |
tree | d19212cba4a7a319cf06bfca831b86864b617d33 /include | |
parent | 7239b516940fc134f895f6480e1b15346f40f75b (diff) | |
download | external_llvm-f53c371983908f02678b0e12c5d18466dcc70ffd.zip external_llvm-f53c371983908f02678b0e12c5d18466dcc70ffd.tar.gz external_llvm-f53c371983908f02678b0e12c5d18466dcc70ffd.tar.bz2 |
Move a bit more state over to the LLVMContext.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76533 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Constants.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index 487dd67..8106d91 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -93,16 +93,6 @@ public: return Val == V; } - /// getTrue/getFalse - Return the singleton true/false values. - static inline ConstantInt *getTrue() { - if (TheTrueVal) return TheTrueVal; - return CreateTrueFalseVals(true); - } - static inline ConstantInt *getFalse() { - if (TheFalseVal) return TheFalseVal; - return CreateTrueFalseVals(false); - } - /// getType - Specialize the getType() method to always return an IntegerType, /// which reduces the amount of casting needed in parts of the compiler. /// @@ -200,9 +190,6 @@ public: static bool classof(const Value *V) { return V->getValueID() == ConstantIntVal; } - static void ResetTrueFalse() { TheTrueVal = TheFalseVal = 0; } -private: - static ConstantInt *CreateTrueFalseVals(bool WhichOne); }; |