aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Constants.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-01-31 06:05:00 +0000
committerChris Lattner <sabre@nondot.org>2012-01-31 06:05:00 +0000
commit1b2f643753a2974540934ac0f1e3ffd182b0571c (patch)
treec7f571a94ad375ba815a3ee6291123e9f3c00c59 /include/llvm/Constants.h
parentca012b8b2341a987f0022adc42424ac8ed26752a (diff)
downloadexternal_llvm-1b2f643753a2974540934ac0f1e3ffd182b0571c.zip
external_llvm-1b2f643753a2974540934ac0f1e3ffd182b0571c.tar.gz
external_llvm-1b2f643753a2974540934ac0f1e3ffd182b0571c.tar.bz2
with recent changes, ConstantArray is never a "string". Remove the associated
methods and constant fold the clients to false. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149362 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r--include/llvm/Constants.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index 43f625a..49cad68 100644
--- a/include/llvm/Constants.h
+++ b/include/llvm/Constants.h
@@ -373,31 +373,6 @@ public:
return reinterpret_cast<ArrayType*>(Value::getType());
}
- // FIXME: String methods will eventually be removed.
-
-
- /// isString - This method returns true if the array is an array of i8 and
- /// the elements of the array are all ConstantInt's.
- bool isString() const;
-
- /// isCString - This method returns true if the array is a string (see
- /// @verbatim
- /// isString) and it ends in a null byte \0 and does not contains any other
- /// @endverbatim
- /// null bytes except its terminator.
- bool isCString() const;
-
- /// getAsString - If this array is isString(), then this method converts the
- /// array to an std::string and returns it. Otherwise, it asserts out.
- ///
- std::string getAsString() const;
-
- /// getAsCString - If this array is isCString(), then this method converts the
- /// array (without the trailing null byte) to an std::string and returns it.
- /// Otherwise, it asserts out.
- ///
- std::string getAsCString() const;
-
virtual void destroyConstant();
virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U);