[llvm-commits] [llvm] r111915 - /llvm/trunk/include/llvm/Metadata.h

Dan Gohman gohman at apple.com
Tue Aug 24 08:34:03 PDT 2010


Author: djg
Date: Tue Aug 24 10:34:03 2010
New Revision: 111915

URL: http://llvm.org/viewvc/llvm-project?rev=111915&view=rev
Log:
MDNode, MDString, and NamedMDNode are not meant to be subclassed;
make their protected members private. And remove an unnecessary
explicit keyword.

Modified:
    llvm/trunk/include/llvm/Metadata.h

Modified: llvm/trunk/include/llvm/Metadata.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Metadata.h?rev=111915&r1=111914&r2=111915&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Metadata.h (original)
+++ llvm/trunk/include/llvm/Metadata.h Tue Aug 24 10:34:03 2010
@@ -38,7 +38,6 @@
   MDString(const MDString &);            // DO NOT IMPLEMENT
 
   StringRef Str;
-protected:
   explicit MDString(LLVMContext &C, StringRef S);
 
 public:
@@ -111,9 +110,8 @@
   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 @@
 
   void setParent(Module *M) { Parent = M; }
 
-protected:
   explicit NamedMDNode(const Twine &N);
 
 public:





More information about the llvm-commits mailing list