Skip to content
Snippets Groups Projects
Commit 84504f21 authored by Reid Spencer's avatar Reid Spencer
Browse files

Properly document the second form of ConstArray::get()

llvm-svn: 28553
parent 6f61453f
No related branches found
No related tags found
No related merge requests found
......@@ -345,6 +345,13 @@ protected:
public:
/// get() - Static factory methods - Return objects of the specified value
static Constant *get(const ArrayType *T, const std::vector<Constant*> &);
/// This method constructs a ConstantArray and initializes it with a text
/// string. The default behavior (len==0) causes the null terminator to
/// be copied as well. However, in some situations this is not desired so
/// if len <= Initializer.length() (but not 0) then only that portion of
/// the string is copied and there is no null termination. If len >
/// than Initializer's length then the function asserts out (don't do that).
static Constant *get(const std::string &Initializer, unsigned len = 0);
/// getType - Specialize the getType() method to always return an ArrayType,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment