From 3fc3230191b710d32e5fbba1e45dd8ea24e98e82 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 31 Dec 2009 01:32:41 +0000 Subject: Remove #include of metadata.h from intrinsicinst.h. The only method that needs it (DbgValueInst::getValue) has been moved out of line. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92323 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/IntrinsicInst.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/VMCore/IntrinsicInst.cpp') diff --git a/lib/VMCore/IntrinsicInst.cpp b/lib/VMCore/IntrinsicInst.cpp index b508f6b..5e0f42e 100644 --- a/lib/VMCore/IntrinsicInst.cpp +++ b/lib/VMCore/IntrinsicInst.cpp @@ -69,3 +69,11 @@ Value *DbgStopPointInst::getDirectory() const { assert(LLVMDebugVersion == (7 << 16) && "Verify operand indices"); return getContext()->getOperand(4); } + +//===----------------------------------------------------------------------===// +/// DbgValueInst - This represents the llvm.dbg.value instruction. +/// + +Value *DbgValueInst::getValue() const { + return cast(getOperand(1))->getOperand(0); +} -- cgit v1.1