aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-11-30 02:17:10 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-11-30 02:17:10 +0000
commitd4900a644ce3e5ff9e5c5acd4bd379ec45017d8d (patch)
treea293b038d778abd26ebdf723edd76eebdd3fd6fa /llvm/lib/CodeGen/CodeGen.cpp
parent4cec5f806bcf10a9247c16cddbbb8966ccd3de33 (diff)
downloadllvm-d4900a644ce3e5ff9e5c5acd4bd379ec45017d8d.zip
llvm-d4900a644ce3e5ff9e5c5acd4bd379ec45017d8d.tar.gz
llvm-d4900a644ce3e5ff9e5c5acd4bd379ec45017d8d.tar.bz2
Stub out a new LiveDebugVariables pass.
This analysis is going to run immediately after LiveIntervals. It will stay alive during register allocation and keep track of user variables mentioned in DBG_VALUE instructions. When the register allocator is moving values between registers and the stack, it is very hard to keep track of DBG_VALUE instructions. We usually get it wrong. This analysis maintains a data structure that makes it easy to update DBG_VALUE instructions. llvm-svn: 120385
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CodeGen.cpp b/llvm/lib/CodeGen/CodeGen.cpp
index fec98d2..515e6f9 100644
--- a/llvm/lib/CodeGen/CodeGen.cpp
+++ b/llvm/lib/CodeGen/CodeGen.cpp
@@ -23,6 +23,7 @@ void llvm::initializeCodeGen(PassRegistry &Registry) {
initializeDeadMachineInstructionElimPass(Registry);
initializeGCModuleInfoPass(Registry);
initializeIfConverterPass(Registry);
+ initializeLiveDebugVariablesPass(Registry);
initializeLiveIntervalsPass(Registry);
initializeLiveStacksPass(Registry);
initializeLiveVariablesPass(Registry);