summaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-06-19 12:54:15 +0000
committerJim Laskey <jlaskey@mac.com>2006-06-19 12:54:15 +0000
commitca0dc56742986df05f9a7e0b425e2e798eaa2f92 (patch)
tree197eb97dcf6df999c8b61f5cd03a30cb0f8d01d5 /lib/CodeGen
parent58421d7d0847bbb5f4cc95c647726d55c45582c0 (diff)
downloadllvm-ca0dc56742986df05f9a7e0b425e2e798eaa2f92.tar.gz
llvm-ca0dc56742986df05f9a7e0b425e2e798eaa2f92.tar.bz2
llvm-ca0dc56742986df05f9a7e0b425e2e798eaa2f92.tar.xz
Handle versioning of compile unit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28855 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/MachineDebugInfo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineDebugInfo.cpp b/lib/CodeGen/MachineDebugInfo.cpp
index 97fecb482b..706beb8a8c 100644
--- a/lib/CodeGen/MachineDebugInfo.cpp
+++ b/lib/CodeGen/MachineDebugInfo.cpp
@@ -614,6 +614,12 @@ bool CompileUnitDesc::classof(const DebugInfoDesc *D) {
///
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);