diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-16 17:54:27 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-16 17:54:27 +0000 |
commit | 1e936277c30f8c3df7fca5b52e7af2dd7bd474cb (patch) | |
tree | f81fabd49f7f13b6d02511ac57fee69cf11d0a81 /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
parent | 34522813e715638a30dc91faa88bcb4e3adaeee2 (diff) | |
download | bcm5719-llvm-1e936277c30f8c3df7fca5b52e7af2dd7bd474cb.tar.gz bcm5719-llvm-1e936277c30f8c3df7fca5b52e7af2dd7bd474cb.zip |
Revert r108369, sorting llvm.dbg.declare information by source position,
since it doesn't work for front-ends which don't emit column information
(which includes llvm-gcc in its present configuration), and doesn't
work for clang for K&R style variables where the variables are declared
in a different order from the parameter list.
Instead, make a separate pass through the instructions to collect the
llvm.dbg.declare instructions in order. This ensures that the debug
information for variables is emitted in this order.
llvm-svn: 108538
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineModuleInfo.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp index 15778b46fe0..8d5f6d301d4 100644 --- a/llvm/lib/CodeGen/MachineModuleInfo.cpp +++ b/llvm/lib/CodeGen/MachineModuleInfo.cpp @@ -579,10 +579,3 @@ namespace { } }; } - -MachineModuleInfo::VariableDbgInfoMapTy & -MachineModuleInfo::getVariableDbgInfo() { - std::stable_sort(VariableDbgInfo.begin(), VariableDbgInfo.end(), - VariableDebugSorter()); - return VariableDbgInfo; -} |