diff options
author | Victor Hernandez <vhernandez@apple.com> | 2010-01-15 19:04:09 +0000 |
---|---|---|
committer | Victor Hernandez <vhernandez@apple.com> | 2010-01-15 19:04:09 +0000 |
commit | 3a32865d58f015e7058444eab7085195c34da95a (patch) | |
tree | 4f6fd059942b2a5290ec3380adb686cca69f58c9 /include/llvm/IntrinsicInst.h | |
parent | 3752d2fe34a8d576203f8034baeabb02e65c87bc (diff) | |
download | llvm-3a32865d58f015e7058444eab7085195c34da95a.tar.gz llvm-3a32865d58f015e7058444eab7085195c34da95a.tar.bz2 llvm-3a32865d58f015e7058444eab7085195c34da95a.tar.xz |
Improve llvm.dbg.declare intrinsic by referring directly to the storage in its first argument, via function-local metadata (instead of via a bitcast).
This patch also cleans up code that expects there to be a bitcast in the first argument and testcases that call llvm.dbg.declare.
It also strips old llvm.dbg.declare intrinsics that did not pass metadata as the first argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93531 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IntrinsicInst.h')
-rw-r--r-- | include/llvm/IntrinsicInst.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/IntrinsicInst.h b/include/llvm/IntrinsicInst.h index 151e4344f3..d86b33ef50 100644 --- a/include/llvm/IntrinsicInst.h +++ b/include/llvm/IntrinsicInst.h @@ -82,7 +82,7 @@ namespace llvm { /// class DbgDeclareInst : public DbgInfoIntrinsic { public: - Value *getAddress() const { return getOperand(1); } + Value *getAddress() const; MDNode *getVariable() const { return cast<MDNode>(getOperand(2)); } // Methods for support type inquiry through isa, cast, and dyn_cast: |