Use different name for argument and field
authorVictor Hernandez <vhernandez@apple.com>
Wed, 16 Dec 2009 08:10:57 +0000 (08:10 +0000)
committerVictor Hernandez <vhernandez@apple.com>
Wed, 16 Dec 2009 08:10:57 +0000 (08:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91524 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Metadata.h
lib/VMCore/Metadata.cpp

index 320944bf244eb2b807c7b9e481245e5829994fd8..32c7fad203d1244cf0a82313cf248b539180561a 100644 (file)
@@ -115,7 +115,7 @@ class MDNode : public MetadataBase, public FoldingSetNode {
 
 protected:
   explicit MDNode(LLVMContext &C, Value *const *Vals, unsigned NumVals,
-                  Function *LocalFunction = NULL);
+                  Function *LocalFunc = NULL);
 public:
   // Constructors and destructors.
   static MDNode *get(LLVMContext &Context, 
index 713661680cfb3b166885ecdd2dbfb8f703487107..ac91a40e10db2bb08251fa8f866e3ef52ced441d 100644 (file)
@@ -50,14 +50,14 @@ MDString *MDString::get(LLVMContext &Context, const char *Str) {
 // MDNode implementation.
 //
 MDNode::MDNode(LLVMContext &C, Value *const *Vals, unsigned NumVals,
-               Function *LocalFunction)
+               Function *LocalFunc)
   : MetadataBase(Type::getMetadataTy(C), Value::MDNodeVal) {
   NodeSize = NumVals;
   Node = new ElementVH[NodeSize];
   ElementVH *Ptr = Node;
   for (unsigned i = 0; i != NumVals; ++i) 
     *Ptr++ = ElementVH(Vals[i], this);
-  LocalFunction = LocalFunction;
+  LocalFunction = LocalFunc;
 }
 
 void MDNode::Profile(FoldingSetNodeID &ID) const {