diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-24 15:34:03 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-24 15:34:03 +0000 |
commit | 2426668562623cf94809309c93b41ecea856b19d (patch) | |
tree | 760d36c9b42bca3b952763d0551236e06d6c3312 /include/llvm/Metadata.h | |
parent | 6826114d6e10725d122dca9352dc2d99a0f693e9 (diff) | |
download | external_llvm-2426668562623cf94809309c93b41ecea856b19d.zip external_llvm-2426668562623cf94809309c93b41ecea856b19d.tar.gz external_llvm-2426668562623cf94809309c93b41ecea856b19d.tar.bz2 |
MDNode, MDString, and NamedMDNode are not meant to be subclassed;
make their protected members private. And remove an unnecessary
explicit keyword.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111915 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Metadata.h')
-rw-r--r-- | include/llvm/Metadata.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h index f773817..f5a80a3 100644 --- a/include/llvm/Metadata.h +++ b/include/llvm/Metadata.h @@ -38,7 +38,6 @@ class MDString : public Value { MDString(const MDString &); // DO NOT IMPLEMENT StringRef Str; -protected: explicit MDString(LLVMContext &C, StringRef S); public: @@ -111,9 +110,8 @@ class MDNode : public Value, public FoldingSetNode { void replaceOperand(MDNodeOperand *Op, Value *NewVal); ~MDNode(); -protected: - explicit MDNode(LLVMContext &C, Value *const *Vals, unsigned NumVals, - bool isFunctionLocal); + MDNode(LLVMContext &C, Value *const *Vals, unsigned NumVals, + bool isFunctionLocal); static MDNode *getMDNode(LLVMContext &C, Value *const *Vals, unsigned NumVals, FunctionLocalness FL, bool Insert = true); @@ -201,7 +199,6 @@ class NamedMDNode : public ilist_node<NamedMDNode> { void setParent(Module *M) { Parent = M; } -protected: explicit NamedMDNode(const Twine &N); public: |