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 | 3fc3230191b710d32e5fbba1e45dd8ea24e98e82 (patch) | |
tree | 80dc31f61216f1ed0539fac2de63f09f456e42e2 /lib/VMCore/IntrinsicInst.cpp | |
parent | ece76b00b4343749f7d3fcf16ce9437248d7aff5 (diff) | |
download | external_llvm-3fc3230191b710d32e5fbba1e45dd8ea24e98e82.zip external_llvm-3fc3230191b710d32e5fbba1e45dd8ea24e98e82.tar.gz external_llvm-3fc3230191b710d32e5fbba1e45dd8ea24e98e82.tar.bz2 |
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.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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<MDNode>(getOperand(1))->getOperand(0); +} |