On Feb 1, 2008, at 9:06 PM, Evan Cheng wrote: > Author: evancheng > Date: Fri Feb 1 23:06:29 2008 > New Revision: 46665 > > URL: http://llvm.org/viewvc/llvm-project?rev=46665&view=rev > Log: > Unbreak ppc debug support.
maybe these should be stored as a srcvalue to avoid legalizer issues? -Chris > > > Modified: > llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp > > Modified: llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp > URL: > http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp?rev=46665&r1=46664&r2=46665&view=diff > > = > = > = > = > = > = > = > = > ====================================================================== > --- llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp (original) > +++ llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp Fri Feb 1 > 23:06:29 2008 > @@ -1076,6 +1076,9 @@ > GlobalAddressSDNode *GSDN = cast<GlobalAddressSDNode>(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(); > > > _______________________________________________ > llvm-commits mailing list > llvm-commits@cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits