OSDN Git Service

DebugInfo: Simplify constant value emission.
authorDavid Blaikie <dblaikie@gmail.com>
Sun, 11 May 2014 15:06:20 +0000 (15:06 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sun, 11 May 2014 15:06:20 +0000 (15:06 +0000)
commitd0125ee3818e2182978899d309f996a3fef493e2
treefffb57163be3b5be4e639bfd153ba502964851fc
parent4db3f410121b1026d47a8de4b79f4a3f4cf9f088
DebugInfo: Simplify constant value emission.

This code looks to have become dead at some time in the past. I tried to
reproduce cases where LLVM would emit constants with dataN, but could
not. Upon inspection it seems the code doesn't do that anymore - the
only time a size is provided by isTypeSigned is when the type is signed,
and in those cases we use sdata. dataN is only used for unsigned types
and isTypeSigned doesn't provide a value for sizeInBits in that case.

Remove the dead cases/size plumbing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208494 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfUnit.cpp