[llvm-branch-commits] [llvm-branch] r121533 - /llvm/branches/Apple/whitney/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Daniel Dunbar
daniel at zuster.org
Fri Dec 10 13:32:01 PST 2010
Author: ddunbar
Date: Fri Dec 10 15:32:01 2010
New Revision: 121533
URL: http://llvm.org/viewvc/llvm-project?rev=121533&view=rev
Log:
Merge r121323:
--
Author: Devang Patel <dpatel at apple.com>
Date: Thu Dec 9 00:10:40 2010 +0000
DW_FORM_data1 may not provide sufficient room for vtable index, use _udata instead.
This fixes radar 8730409.
Modified:
llvm/branches/Apple/whitney/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/branches/Apple/whitney/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/whitney/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=121533&r1=121532&r2=121533&view=diff
==============================================================================
--- llvm/branches/Apple/whitney/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/branches/Apple/whitney/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Fri Dec 10 15:32:01 2010
@@ -1345,7 +1345,7 @@
addUInt(SPDie, dwarf::DW_AT_virtuality, dwarf::DW_FORM_flag, VK);
DIEBlock *Block = new (DIEValueAllocator) DIEBlock();
addUInt(Block, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_constu);
- addUInt(Block, 0, dwarf::DW_FORM_data1, SP.getVirtualIndex());
+ addUInt(Block, 0, dwarf::DW_FORM_udata, SP.getVirtualIndex());
addBlock(SPDie, dwarf::DW_AT_vtable_elem_location, 0, Block);
ContainingTypeMap.insert(std::make_pair(SPDie,
SP.getContainingType()));
More information about the llvm-branch-commits
mailing list