summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-04-25 21:33:54 +0000
committerDale Johannesen <dalej@apple.com>2010-04-25 21:33:54 +0000
commitf822e733aff93b34e6cd85b2f92d86e71fe67f87 (patch)
tree9f17965e84d4b2eaab0d176ff3f077938c554492 /include
parente32adf53b2519b0f8131c4e5364d4a9f1b86639c (diff)
downloadllvm-f822e733aff93b34e6cd85b2f92d86e71fe67f87.tar.gz
llvm-f822e733aff93b34e6cd85b2f92d86e71fe67f87.tar.bz2
llvm-f822e733aff93b34e6cd85b2f92d86e71fe67f87.tar.xz
Stop abusing EmitInstrWithCustomInserter for target-dependent
form of DEBUG_VALUE, as it doesn't have reasonable default behavior for unsupported targets. Add a new hook instead. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102320 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetLowering.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index 58037dded1..2c77331533 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -1255,6 +1255,16 @@ public:
return SDValue();
}
+ /// EmitTargetCodeForFrameDebugValue - Emit a target-dependent form of
+ /// DBG_VALUE encoding the address of a frame index. Addresses would
+ /// normally be lowered the same way as other addresses on the target,
+ /// e.g. in load instructions. For targets that do not support this
+ /// the debug info is simply lost.
+ virtual void
+ EmitTargetCodeForFrameDebugValue(MachineBasicBlock* BB, unsigned FrameIx,
+ uint64_t Offset, MDNode *MDPtr,
+ DebugLoc dl) const {}
+
/// LowerOperationWrapper - This callback is invoked by the type legalizer
/// to legalize nodes with an illegal operand type but legal result types.
/// It replaces the LowerOperation callback in the type Legalizer.