diff options
| author | Jim Laskey <jlaskey@mac.com> | 2006-01-05 01:25:28 +0000 |
|---|---|---|
| committer | Jim Laskey <jlaskey@mac.com> | 2006-01-05 01:25:28 +0000 |
| commit | 762e9ec06c62131bd5967b5fe855c543c7d1af67 (patch) | |
| tree | 14ff31f5a1f97299d4dac2e56bdcc1e0080d044d /llvm/lib/Target/PowerPC/PPCISelLowering.cpp | |
| parent | 45e19098a6a723bd4b5d66ef56f32798f0fafa95 (diff) | |
| download | bcm5719-llvm-762e9ec06c62131bd5967b5fe855c543c7d1af67.tar.gz bcm5719-llvm-762e9ec06c62131bd5967b5fe855c543c7d1af67.zip | |
Added initial support for DEBUG_LABEL allowing debug specific labels to be
inserted in the code.
llvm-svn: 25104
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 01d8f075b7b..8eb4ac303a7 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -94,8 +94,11 @@ PPCTargetLowering::PPCTargetLowering(TargetMachine &TM) // PowerPC does not have truncstore for i1. setOperationAction(ISD::TRUNCSTORE, MVT::i1, Promote); - // PowerPC doesn't have line number support yet. + // Support label based line numbers. setOperationAction(ISD::LOCATION, MVT::Other, Expand); + // FIXME - use subtarget debug flags + if (TM.getSubtarget<PPCSubtarget>().isDarwin()) + setOperationAction(ISD::DEBUG_LABEL, MVT::Other, Expand); // We want to legalize GlobalAddress and ConstantPool nodes into the // appropriate instructions to materialize the address. |

