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 /lib/CodeGen | |
parent | 3752d2fe34a8d576203f8034baeabb02e65c87bc (diff) | |
download | external_llvm-3a32865d58f015e7058444eab7085195c34da95a.zip external_llvm-3a32865d58f015e7058444eab7085195c34da95a.tar.gz external_llvm-3a32865d58f015e7058444eab7085195c34da95a.tar.bz2 |
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 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SelectionDAG/FastISel.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp index 8bc95d3..09fd657 100644 --- a/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -332,8 +332,6 @@ bool FastISel::SelectCall(User *I) { return true; Value *Address = DI->getAddress(); - if (BitCastInst *BCI = dyn_cast<BitCastInst>(Address)) - Address = BCI->getOperand(0); AllocaInst *AI = dyn_cast<AllocaInst>(Address); // Don't handle byval struct arguments or VLAs, for example. if (!AI) break; |