summaryrefslogtreecommitdiff
path: root/include/llvm/LLVMContext.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-02 17:19:47 +0000
committerOwen Anderson <resistor@mac.com>2009-07-02 17:19:47 +0000
commit093811593ef84a6a4180cd38af202fae0d30160f (patch)
treebf636ad23ea643f4a09b62d46a06febb04e62ae2 /include/llvm/LLVMContext.h
parentdfc8536d7bedbd7ce826235d7b408c4e969ccc8c (diff)
downloadllvm-093811593ef84a6a4180cd38af202fae0d30160f.tar.gz
llvm-093811593ef84a6a4180cd38af202fae0d30160f.tar.bz2
llvm-093811593ef84a6a4180cd38af202fae0d30160f.tar.xz
Add accessors for metadata constants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74707 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/LLVMContext.h')
-rw-r--r--include/llvm/LLVMContext.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/LLVMContext.h b/include/llvm/LLVMContext.h
index 8afa4a523f..128175c566 100644
--- a/include/llvm/LLVMContext.h
+++ b/include/llvm/LLVMContext.h
@@ -32,6 +32,7 @@ class ConstantFP;
class ConstantVector;
class UndefValue;
class MDNode;
+class MDString;
class IntegerType;
class PointerType;
class StructType;
@@ -180,6 +181,10 @@ public:
// MDNode accessors
MDNode* getMDNode(Value* const* Vals, unsigned NumVals);
+ // MDString accessors
+ MDString* getMDString(const char *StrBegin, const char *StrEnd);
+ MDString* getMDString(const std::string &Str);
+
// FunctionType accessors
FunctionType* getFunctionType(const Type* Result,
const std::vector<const Type*>& Params,