diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-02-02 05:06:29 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-02-02 05:06:29 +0000 |
commit | fcf5d4f456e5bb2547164c150797a023d22780a4 (patch) | |
tree | 70d0cdebae340df817e8d5cdddaad3007dd27a63 /lib | |
parent | a844bdeab31ef04221e7ef59a8467893584cc14d (diff) | |
download | external_llvm-fcf5d4f456e5bb2547164c150797a023d22780a4.zip external_llvm-fcf5d4f456e5bb2547164c150797a023d22780a4.tar.gz external_llvm-fcf5d4f456e5bb2547164c150797a023d22780a4.tar.bz2 |
Unbreak ppc debug support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46665 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/PowerPC/PPCISelLowering.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index 79fc16b..e17f82d 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<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(); |