diff options
author | Victor Hernandez <vhernandez@apple.com> | 2010-01-11 07:45:19 +0000 |
---|---|---|
committer | Victor Hernandez <vhernandez@apple.com> | 2010-01-11 07:45:19 +0000 |
commit | 9ce5b5134dbc9df7e4d6f2a938f84a499ad81096 (patch) | |
tree | 82fd0b6f821093a0eee60d43a40696d8e0e0bc42 /llvm/lib/VMCore/IntrinsicInst.cpp | |
parent | e47550e45270480a164e8f47cc6c09aee4e0cb51 (diff) | |
download | bcm5719-llvm-9ce5b5134dbc9df7e4d6f2a938f84a499ad81096.tar.gz bcm5719-llvm-9ce5b5134dbc9df7e4d6f2a938f84a499ad81096.zip |
Respond to Chris' review:
Make InsertDbgValueIntrinsic() and get Offset take and recieve a uint64_t.
Get constness correct for getVariable() and getValue().
llvm-svn: 93149
Diffstat (limited to 'llvm/lib/VMCore/IntrinsicInst.cpp')
-rw-r--r-- | llvm/lib/VMCore/IntrinsicInst.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/IntrinsicInst.cpp b/llvm/lib/VMCore/IntrinsicInst.cpp index daa768c0cfe..cb9252efdf5 100644 --- a/llvm/lib/VMCore/IntrinsicInst.cpp +++ b/llvm/lib/VMCore/IntrinsicInst.cpp @@ -54,6 +54,10 @@ Value *DbgInfoIntrinsic::StripCast(Value *C) { /// DbgValueInst - This represents the llvm.dbg.value instruction. /// -Value *DbgValueInst::getValue() const { +const Value *DbgValueInst::getValue() const { + return cast<MDNode>(getOperand(1))->getOperand(0); +} + +Value *DbgValueInst::getValue() { return cast<MDNode>(getOperand(1))->getOperand(0); } |