X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FMetadata.h;h=a6c3f039a11ec41802f5da0590c0421692b06571;hb=9a376a8003c486054ea4d7c2465cb90b501c9893;hp=f773817e829f87d2e8ef4bbd775702543c4556a5;hpb=489b29b0a4ee4526e3d50ad88d3d48745baf5042;p=oota-llvm.git diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h index f773817e829..a6c3f039a11 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); @@ -146,9 +144,6 @@ public: unsigned getNumOperands() const { return NumOperands; } /// isFunctionLocal - Return whether MDNode is local to a function. - /// Note: MDNodes are designated as function-local when created, and keep - /// that designation even if their operands are modified to no longer - /// refer to function-local IR. bool isFunctionLocal() const { return (getSubclassDataFromValue() & FunctionLocalBit) != 0; } @@ -201,7 +196,6 @@ class NamedMDNode : public ilist_node { void setParent(Module *M) { Parent = M; } -protected: explicit NamedMDNode(const Twine &N); public: