From f8edc4a4b1b30b6324d88d11ffb7ba07eb460744 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Thu, 13 Nov 2014 13:17:47 +0000 Subject: IR: Create the Metadata class This will become the root of a new class hierarchy separate from `Value`. As a first step, stick it between `Value` and `MDNode`. This is part of PR21532. llvm-svn: 221886 --- llvm/lib/IR/Metadata.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/IR') diff --git a/llvm/lib/IR/Metadata.cpp b/llvm/lib/IR/Metadata.cpp index 1fb15a075a6..8d616cfb0d6 100644 --- a/llvm/lib/IR/Metadata.cpp +++ b/llvm/lib/IR/Metadata.cpp @@ -109,8 +109,8 @@ void MDNode::replaceOperandWith(unsigned i, Value *Val) { replaceOperand(Op, Val); } -MDNode::MDNode(LLVMContext &C, ArrayRef Vals, bool isFunctionLocal) -: Value(Type::getMetadataTy(C), Value::MDNodeVal) { +MDNode::MDNode(LLVMContext &C, ArrayRef Vals, bool isFunctionLocal) + : Metadata(Type::getMetadataTy(C), Value::MDNodeVal) { NumOperands = Vals.size(); if (isFunctionLocal) -- cgit v1.2.3