aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2001-10-14 23:16:27 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2001-10-14 23:16:27 +0000
commitc9abc6528df2e50b9951fb45acedf7e3bcd4617b (patch)
tree6aaa4133894566c299a2d9620d1677c2fbe54226
parent519c6fc354c7b53a320067fca7a8ddada541cd4f (diff)
Added routine to create a char array for a string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@798 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/ConstPoolVals.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/ConstPoolVals.h b/include/llvm/ConstPoolVals.h
index fa50a6b1ac..be245abd7b 100644
--- a/include/llvm/ConstPoolVals.h
+++ b/include/llvm/ConstPoolVals.h
@@ -213,7 +213,8 @@ protected:
virtual void destroyConstant();
public:
static ConstPoolArray *get(const ArrayType *T, const vector<ConstPoolVal*> &);
-
+ static ConstPoolArray *get(const string& stringConstant);
+
virtual string getStrValue() const;
inline const vector<Use> &getValues() const { return Operands; }