[llvm-commits] CVS: llvm/lib/CodeGen/MachineDebugInfo.cpp
Jim Laskey
jlaskey at apple.com
Mon Jun 19 05:54:28 PDT 2006
Changes in directory llvm/lib/CodeGen:
MachineDebugInfo.cpp updated: 1.42 -> 1.43
---
Log message:
Handle versioning of compile unit.
---
Diffs of the changes: (+6 -0)
MachineDebugInfo.cpp | 6 ++++++
1 files changed, 6 insertions(+)
Index: llvm/lib/CodeGen/MachineDebugInfo.cpp
diff -u llvm/lib/CodeGen/MachineDebugInfo.cpp:1.42 llvm/lib/CodeGen/MachineDebugInfo.cpp:1.43
--- llvm/lib/CodeGen/MachineDebugInfo.cpp:1.42 Fri Jun 16 08:14:03 2006
+++ llvm/lib/CodeGen/MachineDebugInfo.cpp Mon Jun 19 07:54:15 2006
@@ -614,6 +614,12 @@
///
void CompileUnitDesc::ApplyToFields(DIVisitor *Visitor) {
AnchoredDesc::ApplyToFields(Visitor);
+
+ // Handle cases out of sync with compiler.
+ if (getVersion() == 0) {
+ unsigned DebugVersion;
+ Visitor->Apply(DebugVersion);
+ }
Visitor->Apply(Language);
Visitor->Apply(FileName);
More information about the llvm-commits
mailing list