summaryrefslogtreecommitdiff
path: root/lib/VMCore/IntrinsicInst.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-31 01:32:41 +0000
committerChris Lattner <sabre@nondot.org>2009-12-31 01:32:41 +0000
commit183912af7947e7c48da64d94b6fe78ebb09cc7ec (patch)
tree80dc31f61216f1ed0539fac2de63f09f456e42e2 /lib/VMCore/IntrinsicInst.cpp
parent5d0cacdbb6577f2449986f345858db17dc1bcf59 (diff)
downloadllvm-183912af7947e7c48da64d94b6fe78ebb09cc7ec.tar.gz
llvm-183912af7947e7c48da64d94b6fe78ebb09cc7ec.tar.bz2
llvm-183912af7947e7c48da64d94b6fe78ebb09cc7ec.tar.xz
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
Diffstat (limited to 'lib/VMCore/IntrinsicInst.cpp')
-rw-r--r--lib/VMCore/IntrinsicInst.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/VMCore/IntrinsicInst.cpp b/lib/VMCore/IntrinsicInst.cpp
index b508f6b4ca..5e0f42e063 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<MDNode>(getOperand(1))->getOperand(0);
+}