Use different name for argument and field

llvm-svn: 91524
This commit is contained in:
Victor Hernandez 2009-12-16 08:10:57 +00:00
parent f684b9039d
commit 2003b90807
2 changed files with 3 additions and 3 deletions

View 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,

View 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 {