diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-31 01:32:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-31 01:32:41 +0000 |
commit | cc8c8146d22a1df0753a886c0bfcc2b8ee05f9ca (patch) | |
tree | 7953d9216d1cf77a0f2322aa27f9ac5c6a15d0a7 /llvm/lib/VMCore/IntrinsicInst.cpp | |
parent | 9b493028dff3c67f1d1419d8a3067a8f0a65f5dc (diff) | |
download | bcm5719-llvm-cc8c8146d22a1df0753a886c0bfcc2b8ee05f9ca.tar.gz bcm5719-llvm-cc8c8146d22a1df0753a886c0bfcc2b8ee05f9ca.zip |
Remove #include of metadata.h from intrinsicinst.h. The only
method that needs it (DbgValueInst::getValue) has been moved out
of line.
llvm-svn: 92323
Diffstat (limited to 'llvm/lib/VMCore/IntrinsicInst.cpp')
-rw-r--r-- | llvm/lib/VMCore/IntrinsicInst.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/IntrinsicInst.cpp b/llvm/lib/VMCore/IntrinsicInst.cpp index b508f6b4ca9..5e0f42e063b 100644 --- a/llvm/lib/VMCore/IntrinsicInst.cpp +++ b/llvm/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); +} |