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 | ae1dc403274d3a64bcee31f15e2d25e4b7178811 (patch) | |
tree | 860399ca4d1a1c66586e537a403dc4e7718771a1 /lib/Target/X86/X86InstrInfo.cpp | |
parent | 72dc5852684bd56af68b3f344b295d9ff5c3a13f (diff) |
expose DWARF_LABEL opcode# so the branch folder can update debug info properly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31024 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86InstrInfo.cpp')
-rw-r--r-- | lib/Target/X86/X86InstrInfo.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Target/X86/X86InstrInfo.cpp b/lib/Target/X86/X86InstrInfo.cpp index 939b8691c4..65321616bf 100644 --- a/lib/Target/X86/X86InstrInfo.cpp +++ b/lib/Target/X86/X86InstrInfo.cpp @@ -25,6 +25,13 @@ X86InstrInfo::X86InstrInfo(X86TargetMachine &tm) TM(tm), RI(tm, *this) { } +/// 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. +unsigned X86InstrInfo::getDWARF_LABELOpcode() const { + return X86::DWARF_LABEL; +} + bool X86InstrInfo::isMoveInstr(const MachineInstr& MI, unsigned& sourceReg, |