summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineModuleInfo.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-07-16 17:54:27 +0000
committerDan Gohman <gohman@apple.com>2010-07-16 17:54:27 +0000
commit9c3d5e41b94ff51dc78ae42397151b52d9c2b546 (patch)
treedc52f63c85eda229440c7052f78a452e56635806 /include/llvm/CodeGen/MachineModuleInfo.h
parent468a2a44e2a2efb5a2cd441205fc78b80edd3844 (diff)
downloadllvm-9c3d5e41b94ff51dc78ae42397151b52d9c2b546.tar.gz
llvm-9c3d5e41b94ff51dc78ae42397151b52d9c2b546.tar.bz2
llvm-9c3d5e41b94ff51dc78ae42397151b52d9c2b546.tar.xz
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 'include/llvm/CodeGen/MachineModuleInfo.h')
-rw-r--r--include/llvm/CodeGen/MachineModuleInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineModuleInfo.h b/include/llvm/CodeGen/MachineModuleInfo.h
index 50e38b447f..0e719c86c1 100644
--- a/include/llvm/CodeGen/MachineModuleInfo.h
+++ b/include/llvm/CodeGen/MachineModuleInfo.h
@@ -344,7 +344,7 @@ public:
VariableDbgInfo.push_back(std::make_pair(N, std::make_pair(Slot, Loc)));
}
- VariableDbgInfoMapTy &getVariableDbgInfo();
+ VariableDbgInfoMapTy &getVariableDbgInfo() { return VariableDbgInfo; }
}; // End class MachineModuleInfo