mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-02 15:51:54 +00:00
MDNode, MDString, and NamedMDNode are not meant to be subclassed;
make their protected members private. And remove an unnecessary explicit keyword. llvm-svn: 111915
This commit is contained in:
parent
afd801ac45
commit
50869535fc
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user