diff options
author | Chris Lattner <sabre@nondot.org> | 2012-01-31 06:18:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-01-31 06:18:43 +0000 |
commit | 6a89228faca4b30c4abc29b5dec98bdac011ea4c (patch) | |
tree | a367894cbd50a8b77a1880ea47757e214826bb52 /include/llvm/Constants.h | |
parent | f98743a49d931e4f4d7ee17e5869972fc96ff115 (diff) | |
download | external_llvm-6a89228faca4b30c4abc29b5dec98bdac011ea4c.zip external_llvm-6a89228faca4b30c4abc29b5dec98bdac011ea4c.tar.gz external_llvm-6a89228faca4b30c4abc29b5dec98bdac011ea4c.tar.bz2 |
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 'include/llvm/Constants.h')
-rw-r--r-- | include/llvm/Constants.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index 49cad68..a4723d3 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -352,17 +352,6 @@ public: // ConstantArray accessors static Constant *get(ArrayType *T, ArrayRef<Constant*> V); - /// This method constructs a ConstantArray and initializes it with a text - /// string. The default behavior (AddNull==true) causes a null terminator to - /// be placed at the end of the array. This effectively increases the length - /// of the array by one (you've been warned). However, in some situations - /// this is not desired so if AddNull==false then the string is copied without - /// null termination. - - // FIXME Remove this. - static Constant *get(LLVMContext &Context, StringRef Initializer, - bool AddNull = true); - /// Transparently provide more efficient getOperand methods. DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Constant); |