summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-01-04 15:04:11 +0000
committerJim Laskey <jlaskey@mac.com>2006-01-04 15:04:11 +0000
commit0da76a676a5b5cd0a18ad044d168fb2a779dab76 (patch)
tree396a434357c108b53923570ca1c1b42ef405fcaf /llvm/lib/Target
parent2741e8304c6c015707b9864f0af5463110bb9304 (diff)
downloadbcm5719-llvm-0da76a676a5b5cd0a18ad044d168fb2a779dab76.tar.gz
bcm5719-llvm-0da76a676a5b5cd0a18ad044d168fb2a779dab76.zip
Add unique id to debug location for debug label use (work in progress.)
llvm-svn: 25096
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.td7
-rw-r--r--llvm/lib/Target/TargetSelectionDAG.td4
2 files changed, 6 insertions, 5 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.td b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
index 395eab678d5..3d3424d17bc 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.td
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
@@ -955,10 +955,11 @@ def V_SET0 : VXForm_setzero<1220, (ops VRRC:$vD),
// DWARF Pseudo Instructions
//
-def DWARF_LOC : Pseudo<(ops i32imm:$line, i32imm:$col, i32imm:$file),
- "; .loc $file, $line, $col",
+def DWARF_LOC : Pseudo<(ops i32imm:$line, i32imm:$col, i32imm:$file,
+ i32imm:$id),
+ "; .loc $file, $line, $col\nLdebug_loc$id:",
[(dwarf_loc (i32 imm:$line), (i32 imm:$col),
- (i32 imm:$file))]>;
+ (i32 imm:$file), (i32 imm:$id))]>;
//===----------------------------------------------------------------------===//
// PowerPC Instruction Patterns
diff --git a/llvm/lib/Target/TargetSelectionDAG.td b/llvm/lib/Target/TargetSelectionDAG.td
index db7c2bdd023..13cd40e3916 100644
--- a/llvm/lib/Target/TargetSelectionDAG.td
+++ b/llvm/lib/Target/TargetSelectionDAG.td
@@ -440,8 +440,8 @@ class ComplexPattern<ValueType ty, int numops, string fn, list<SDNode> roots = [
//===----------------------------------------------------------------------===//
// Dwarf support.
//
-def SDT_dwarf_loc : SDTypeProfile<0, 3,
- [SDTCisInt<0>, SDTCisInt<1>, SDTCisInt<2>]>;
+def SDT_dwarf_loc : SDTypeProfile<0, 4,
+ [SDTCisInt<0>, SDTCisInt<1>, SDTCisInt<2>, SDTCisInt<3>]>;
def dwarf_loc : SDNode<"ISD::DEBUG_LOC", SDT_dwarf_loc,[SDNPHasChain]>;
OpenPOWER on IntegriCloud