mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
Revert r112213. It is not needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112242 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fcb4a8ead3
commit
4cf81c47fe
@ -876,23 +876,12 @@ void SelectionDAGBuilder::visit(unsigned Opcode, const User &I) {
|
|||||||
void SelectionDAGBuilder::resolveDanglingDebugInfo(const Value *V,
|
void SelectionDAGBuilder::resolveDanglingDebugInfo(const Value *V,
|
||||||
SDValue Val) {
|
SDValue Val) {
|
||||||
DanglingDebugInfo &DDI = DanglingDebugInfoMap[V];
|
DanglingDebugInfo &DDI = DanglingDebugInfoMap[V];
|
||||||
MDNode *Variable = NULL;
|
if (DDI.getDI()) {
|
||||||
uint64_t Offset = 0;
|
const DbgValueInst *DI = DDI.getDI();
|
||||||
|
|
||||||
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) {
|
|
||||||
DebugLoc dl = DDI.getdl();
|
DebugLoc dl = DDI.getdl();
|
||||||
unsigned DbgSDNodeOrder = DDI.getSDNodeOrder();
|
unsigned DbgSDNodeOrder = DDI.getSDNodeOrder();
|
||||||
|
MDNode *Variable = DI->getVariable();
|
||||||
|
uint64_t Offset = DI->getOffset();
|
||||||
SDDbgValue *SDV;
|
SDDbgValue *SDV;
|
||||||
if (Val.getNode()) {
|
if (Val.getNode()) {
|
||||||
if (!EmitFuncArgumentDbgValue(V, Variable, Offset, Val)) {
|
if (!EmitFuncArgumentDbgValue(V, Variable, Offset, Val)) {
|
||||||
|
@ -36,7 +36,7 @@ class BasicBlock;
|
|||||||
class BitCastInst;
|
class BitCastInst;
|
||||||
class BranchInst;
|
class BranchInst;
|
||||||
class CallInst;
|
class CallInst;
|
||||||
class DbgInfoIntrinsic;
|
class DbgValueInst;
|
||||||
class ExtractElementInst;
|
class ExtractElementInst;
|
||||||
class ExtractValueInst;
|
class ExtractValueInst;
|
||||||
class FCmpInst;
|
class FCmpInst;
|
||||||
@ -96,14 +96,14 @@ class SelectionDAGBuilder {
|
|||||||
|
|
||||||
/// DanglingDebugInfo - Helper type for DanglingDebugInfoMap.
|
/// DanglingDebugInfo - Helper type for DanglingDebugInfoMap.
|
||||||
class DanglingDebugInfo {
|
class DanglingDebugInfo {
|
||||||
const DbgInfoIntrinsic* DI;
|
const DbgValueInst* DI;
|
||||||
DebugLoc dl;
|
DebugLoc dl;
|
||||||
unsigned SDNodeOrder;
|
unsigned SDNodeOrder;
|
||||||
public:
|
public:
|
||||||
DanglingDebugInfo() : DI(0), dl(DebugLoc()), SDNodeOrder(0) { }
|
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) { }
|
DI(di), dl(DL), SDNodeOrder(SDNO) { }
|
||||||
const DbgInfoIntrinsic* getDI() { return DI; }
|
const DbgValueInst* getDI() { return DI; }
|
||||||
DebugLoc getdl() { return dl; }
|
DebugLoc getdl() { return dl; }
|
||||||
unsigned getSDNodeOrder() { return SDNodeOrder; }
|
unsigned getSDNodeOrder() { return SDNodeOrder; }
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user