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 | b2c1c2be5dbabbbcf75ef4868c57426a64b8db6a (patch) | |
| tree | dc52f63c85eda229440c7052f78a452e56635806 /lib/CodeGen/MachineModuleInfo.cpp | |
| parent | 160fe2680efe1d42179ec4907e7eabc70a4d643c (diff) | |
| download | external_llvm-b2c1c2be5dbabbbcf75ef4868c57426a64b8db6a.zip external_llvm-b2c1c2be5dbabbbcf75ef4868c57426a64b8db6a.tar.gz external_llvm-b2c1c2be5dbabbbcf75ef4868c57426a64b8db6a.tar.bz2 | |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineModuleInfo.cpp')
| -rw-r--r-- | lib/CodeGen/MachineModuleInfo.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/CodeGen/MachineModuleInfo.cpp b/lib/CodeGen/MachineModuleInfo.cpp index 15778b4..8d5f6d3 100644 --- a/lib/CodeGen/MachineModuleInfo.cpp +++ b/lib/CodeGen/MachineModuleInfo.cpp @@ -579,10 +579,3 @@ namespace { } }; } - -MachineModuleInfo::VariableDbgInfoMapTy & -MachineModuleInfo::getVariableDbgInfo() { - std::stable_sort(VariableDbgInfo.begin(), VariableDbgInfo.end(), - VariableDebugSorter()); - return VariableDbgInfo; -} |
