aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Hernandez <vhernandez@apple.com>2009-12-16 08:10:57 +0000
committerVictor Hernandez <vhernandez@apple.com>2009-12-16 08:10:57 +0000
commit6bc2b8b215240e564b8f255e45e429823c2004f3 (patch)
tree5e858b47fe257c7dbdd4c975f9cb0ab3a96797bb
parent2676f183123e1472c8d9d7f6a64f1d50a74e484a (diff)
Use different name for argument and field
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91524 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Metadata.h2
-rw-r--r--lib/VMCore/Metadata.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h
index 320944bf24..32c7fad203 100644
--- a/include/llvm/Metadata.h
+++ b/include/llvm/Metadata.h
@@ -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,
diff --git a/lib/VMCore/Metadata.cpp b/lib/VMCore/Metadata.cpp
index 713661680c..ac91a40e10 100644
--- a/lib/VMCore/Metadata.cpp
+++ b/lib/VMCore/Metadata.cpp
@@ -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 {