From: Evan Cheng Date: Sat, 2 Feb 2008 05:06:29 +0000 (+0000) Subject: Unbreak ppc debug support. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fcf5d4f456e5bb2547164c150797a023d22780a4;p=oota-llvm.git Unbreak ppc debug support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46665 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index 79fc16bfcac..e17f82d6aaa 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -1076,6 +1076,9 @@ static SDOperand LowerGlobalAddress(SDOperand Op, SelectionDAG &DAG) { GlobalAddressSDNode *GSDN = cast(Op); GlobalValue *GV = GSDN->getGlobal(); SDOperand GA = DAG.getTargetGlobalAddress(GV, PtrVT, GSDN->getOffset()); + // If it's a debug information descriptor, don't mess with it. + if (DAG.isVerifiedDebugInfoDesc(Op)) + return GA; SDOperand Zero = DAG.getConstant(0, PtrVT); const TargetMachine &TM = DAG.getTarget();