diff options
| author | Devang Patel <dpatel@apple.com> | 2010-08-26 23:35:15 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2010-08-26 23:35:15 +0000 |
| commit | 91145b6e85eb303b0ef97d05c07370a8ad54e15e (patch) | |
| tree | 6ceb50060e16a3e43e36002d1bacce19742a579f /lib | |
| parent | 32b4e13e59e23f2354f6c3ecc45df8e43a989b0f (diff) | |
| download | external_llvm-91145b6e85eb303b0ef97d05c07370a8ad54e15e.zip external_llvm-91145b6e85eb303b0ef97d05c07370a8ad54e15e.tar.gz external_llvm-91145b6e85eb303b0ef97d05c07370a8ad54e15e.tar.bz2 | |
Revert r112213. It is not needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112242 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 19 | ||||
| -rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h | 8 |
2 files changed, 8 insertions, 19 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 5b4cc2f..d19b30b 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -876,23 +876,12 @@ void SelectionDAGBuilder::visit(unsigned Opcode, const User &I) { void SelectionDAGBuilder::resolveDanglingDebugInfo(const Value *V, SDValue Val) { DanglingDebugInfo &DDI = DanglingDebugInfoMap[V]; - MDNode *Variable = NULL; - uint64_t Offset = 0; - - if (const DbgValueInst *DI = dyn_cast_or_null<DbgValueInst>(DDI.getDI())) { - Variable = DI->getVariable(); - Offset = DI->getOffset(); - } else if (const DbgDeclareInst *DI = - dyn_cast_or_null<DbgDeclareInst>(DDI.getDI())) - Variable = DI->getVariable(); - else { - assert (DDI.getDI() == NULL && "Invalid debug info intrinsic!"); - return; - } - - if (Variable) { + if (DDI.getDI()) { + const DbgValueInst *DI = DDI.getDI(); DebugLoc dl = DDI.getdl(); unsigned DbgSDNodeOrder = DDI.getSDNodeOrder(); + MDNode *Variable = DI->getVariable(); + uint64_t Offset = DI->getOffset(); SDDbgValue *SDV; if (Val.getNode()) { if (!EmitFuncArgumentDbgValue(V, Variable, Offset, Val)) { diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h index 047a05d..2ba8897 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h @@ -36,7 +36,7 @@ class BasicBlock; class BitCastInst; class BranchInst; class CallInst; -class DbgInfoIntrinsic; +class DbgValueInst; class ExtractElementInst; class ExtractValueInst; class FCmpInst; @@ -96,14 +96,14 @@ class SelectionDAGBuilder { /// DanglingDebugInfo - Helper type for DanglingDebugInfoMap. class DanglingDebugInfo { - const DbgInfoIntrinsic* DI; + const DbgValueInst* DI; DebugLoc dl; unsigned SDNodeOrder; public: DanglingDebugInfo() : DI(0), dl(DebugLoc()), SDNodeOrder(0) { } - DanglingDebugInfo(const DbgInfoIntrinsic *di, DebugLoc DL, unsigned SDNO) : + DanglingDebugInfo(const DbgValueInst *di, DebugLoc DL, unsigned SDNO) : DI(di), dl(DL), SDNodeOrder(SDNO) { } - const DbgInfoIntrinsic* getDI() { return DI; } + const DbgValueInst* getDI() { return DI; } DebugLoc getdl() { return dl; } unsigned getSDNodeOrder() { return SDNodeOrder; } }; |
