summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86InstrInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-17 22:41:45 +0000
committerChris Lattner <sabre@nondot.org>2006-10-17 22:41:45 +0000
commit0408e5b7ce4cd1678d6e784706adc150240fa328 (patch)
tree9f839b8a52d4045584254f3e3c2c432d6a6904e9 /llvm/lib/Target/X86/X86InstrInfo.cpp
parente1a72005de6aa7f62d21e623fb6d75eca78658e1 (diff)
downloadbcm5719-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/X86/X86InstrInfo.cpp')
-rw-r--r--llvm/lib/Target/X86/X86InstrInfo.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp
index 939b8691c43..65321616bf6 100644
--- a/llvm/lib/Target/X86/X86InstrInfo.cpp
+++ b/llvm/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,
OpenPOWER on IntegriCloud