summaryrefslogtreecommitdiff
path: root/lib/VMCore/Constants.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-01-31 06:18:43 +0000
committerChris Lattner <sabre@nondot.org>2012-01-31 06:18:43 +0000
commit6a89228faca4b30c4abc29b5dec98bdac011ea4c (patch)
treea367894cbd50a8b77a1880ea47757e214826bb52 /lib/VMCore/Constants.cpp
parentf98743a49d931e4f4d7ee17e5869972fc96ff115 (diff)
downloadllvm-6a89228faca4b30c4abc29b5dec98bdac011ea4c.tar.gz
llvm-6a89228faca4b30c4abc29b5dec98bdac011ea4c.tar.bz2
llvm-6a89228faca4b30c4abc29b5dec98bdac011ea4c.tar.xz
eliminate the "string" form of ConstantArray::get, using
ConstantDataArray::getString instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149365 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Constants.cpp')
-rw-r--r--lib/VMCore/Constants.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp
index 409c1375ad..7d423c04a6 100644
--- a/lib/VMCore/Constants.cpp
+++ b/lib/VMCore/Constants.cpp
@@ -780,12 +780,6 @@ Constant *ConstantArray::get(ArrayType *Ty, ArrayRef<Constant*> V) {
return pImpl->ArrayConstants.getOrCreate(Ty, V);
}
-// FIXME: Remove this method.
-Constant *ConstantArray::get(LLVMContext &Context, StringRef Str,
- bool AddNull) {
- return ConstantDataArray::getString(Context, Str, AddNull);
-}
-
/// getTypeForElements - Return an anonymous struct type to use for a constant
/// with the specified set of elements. The list must not be empty.
StructType *ConstantStruct::getTypeForElements(LLVMContext &Context,