llvm.org GIT mirror llvm / 4cf81c4
Revert r112213. It is not needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112242 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 10 years ago
2 changed file(s) with 8 addition(s) and 19 deletion(s). Raw diff Collapse all Expand all
875875 void SelectionDAGBuilder::resolveDanglingDebugInfo(const Value *V,
876876 SDValue Val) {
877877 DanglingDebugInfo &DDI = DanglingDebugInfoMap[V];
878 MDNode *Variable = NULL;
879 uint64_t Offset = 0;
880
881 if (const DbgValueInst *DI = dyn_cast_or_null(DDI.getDI())) {
882 Variable = DI->getVariable();
883 Offset = DI->getOffset();
884 } else if (const DbgDeclareInst *DI =
885 dyn_cast_or_null(DDI.getDI()))
886 Variable = DI->getVariable();
887 else {
888 assert (DDI.getDI() == NULL && "Invalid debug info intrinsic!");
889 return;
890 }
891
892 if (Variable) {
878 if (DDI.getDI()) {
879 const DbgValueInst *DI = DDI.getDI();
893880 DebugLoc dl = DDI.getdl();
894881 unsigned DbgSDNodeOrder = DDI.getSDNodeOrder();
882 MDNode *Variable = DI->getVariable();
883 uint64_t Offset = DI->getOffset();
895884 SDDbgValue *SDV;
896885 if (Val.getNode()) {
897886 if (!EmitFuncArgumentDbgValue(V, Variable, Offset, Val)) {
3535 class BitCastInst;
3636 class BranchInst;
3737 class CallInst;
38 class DbgInfoIntrinsic;
38 class DbgValueInst;
3939 class ExtractElementInst;
4040 class ExtractValueInst;
4141 class FCmpInst;
9595
9696 /// DanglingDebugInfo - Helper type for DanglingDebugInfoMap.
9797 class DanglingDebugInfo {
98 const DbgInfoIntrinsic* DI;
98 const DbgValueInst* DI;
9999 DebugLoc dl;
100100 unsigned SDNodeOrder;
101101 public:
102102 DanglingDebugInfo() : DI(0), dl(DebugLoc()), SDNodeOrder(0) { }
103 DanglingDebugInfo(const DbgInfoIntrinsic *di, DebugLoc DL, unsigned SDNO) :
103 DanglingDebugInfo(const DbgValueInst *di, DebugLoc DL, unsigned SDNO) :
104104 DI(di), dl(DL), SDNodeOrder(SDNO) { }
105 const DbgInfoIntrinsic* getDI() { return DI; }
105 const DbgValueInst* getDI() { return DI; }
106106 DebugLoc getdl() { return dl; }
107107 unsigned getSDNodeOrder() { return SDNodeOrder; }
108108 };