diff options
author | Devang Patel <dpatel@apple.com> | 2010-01-05 20:41:31 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-01-05 20:41:31 +0000 |
commit | 3e30c2a3c54c50246e6cccf0c8842619e29fe66c (patch) | |
tree | 687bd99218ce170b8ac4dd03ce4fe61bc89842b8 /include/llvm/Metadata.h | |
parent | 11acaa374cdcebb161bf0de5f244265d78a749c1 (diff) | |
download | external_llvm-3e30c2a3c54c50246e6cccf0c8842619e29fe66c.zip external_llvm-3e30c2a3c54c50246e6cccf0c8842619e29fe66c.tar.gz external_llvm-3e30c2a3c54c50246e6cccf0c8842619e29fe66c.tar.bz2 |
NamedMDNode is a collection MDNodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92761 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Metadata.h')
-rw-r--r-- | include/llvm/Metadata.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h index ec6ba1b..491b469 100644 --- a/include/llvm/Metadata.h +++ b/include/llvm/Metadata.h @@ -167,7 +167,7 @@ private: }; //===----------------------------------------------------------------------===// -/// NamedMDNode - a tuple of other metadata. +/// NamedMDNode - a tuple of MDNodes. /// NamedMDNode is always named. All NamedMDNode operand has a type of metadata. class NamedMDNode : public MetadataBase, public ilist_node<NamedMDNode> { friend class SymbolTableListTraits<NamedMDNode, Module>; @@ -176,15 +176,15 @@ class NamedMDNode : public MetadataBase, public ilist_node<NamedMDNode> { NamedMDNode(const NamedMDNode &); // DO NOT IMPLEMENT Module *Parent; - void *Operands; // SmallVector<TrackingVH<MetadataBase>, 4> + void *Operands; // SmallVector<WeakVH<MDNode>, 4> void setParent(Module *M) { Parent = M; } protected: - explicit NamedMDNode(LLVMContext &C, const Twine &N, MetadataBase*const *Vals, + explicit NamedMDNode(LLVMContext &C, const Twine &N, MDNode*const *Vals, unsigned NumVals, Module *M = 0); public: static NamedMDNode *Create(LLVMContext &C, const Twine &N, - MetadataBase *const *MDs, + MDNode *const *MDs, unsigned NumMDs, Module *M = 0) { return new NamedMDNode(C, N, MDs, NumMDs, M); } @@ -206,13 +206,13 @@ public: inline const Module *getParent() const { return Parent; } /// getOperand - Return specified operand. - MetadataBase *getOperand(unsigned i) const; + MDNode *getOperand(unsigned i) const; /// getNumOperands - Return the number of NamedMDNode operands. unsigned getNumOperands() const; /// addOperand - Add metadata operand. - void addOperand(MetadataBase *M); + void addOperand(MDNode *M); /// Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const NamedMDNode *) { return true; } |