diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-17 22:41:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-17 22:41:45 +0000 |
commit | 0408e5b7ce4cd1678d6e784706adc150240fa328 (patch) | |
tree | 9f839b8a52d4045584254f3e3c2c432d6a6904e9 /llvm/lib/Target/PowerPC/PPCInstrInfo.h | |
parent | e1a72005de6aa7f62d21e623fb6d75eca78658e1 (diff) | |
download | bcm5719-llvm-0408e5b7ce4cd1678d6e784706adc150240fa328.tar.gz bcm5719-llvm-0408e5b7ce4cd1678d6e784706adc150240fa328.zip |
expose DWARF_LABEL opcode# so the branch folder can update debug info properly.
llvm-svn: 31024
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.h')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCInstrInfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.h b/llvm/lib/Target/PowerPC/PPCInstrInfo.h index 265e1e76c2f..dc16aed4dc2 100644 --- a/llvm/lib/Target/PowerPC/PPCInstrInfo.h +++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.h @@ -77,6 +77,13 @@ public: /// This is used for addressing modes. virtual const TargetRegisterClass *getPointerRegClass() const; + /// getDWARF_LABELOpcode - Return the opcode of the target's DWARF_LABEL + /// instruction if it has one. This is used by codegen passes that update + /// DWARF line number info as they modify the code. + virtual unsigned getDWARF_LABELOpcode() const { + return PPC::DWARF_LABEL; + } + // Return true if the instruction is a register to register move and // leave the source and dest operands in the passed parameters. // |