diff options
author | Eric Christopher <echristo@gmail.com> | 2013-01-17 03:00:04 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-01-17 03:00:04 +0000 |
commit | 446b88fb81e14f5fa6f98ca924c83edc856cade7 (patch) | |
tree | ea74cd51a4d1a7baca69aeaf696a630a15796052 /lib/CodeGen/AsmPrinter/DIE.cpp | |
parent | d96c72a14cf327af98cbc7d3491f7a2248f5137d (diff) |
Fix the assembly and dissassembly of DW_FORM_sec_offset. Found this by
changing both the string of the dwo_name to be correct and the type of
the statement list.
Testcases all around.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172699 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DIE.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DIE.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DIE.cpp b/lib/CodeGen/AsmPrinter/DIE.cpp index 5d1fd83ad2..4ded2818ed 100644 --- a/lib/CodeGen/AsmPrinter/DIE.cpp +++ b/lib/CodeGen/AsmPrinter/DIE.cpp @@ -254,6 +254,7 @@ void DIELabel::EmitValue(AsmPrinter *AP, unsigned Form) const { /// unsigned DIELabel::SizeOf(AsmPrinter *AP, unsigned Form) const { if (Form == dwarf::DW_FORM_data4) return 4; + if (Form == dwarf::DW_FORM_sec_offset) return 4; if (Form == dwarf::DW_FORM_strp) return 4; return AP->getDataLayout().getPointerSize(); } |