Rewrote the bitfield logic. Major changes include:
authorSean Callanan <scallanan@apple.com>
Wed, 5 Dec 2012 23:37:14 +0000 (23:37 +0000)
committerSean Callanan <scallanan@apple.com>
Wed, 5 Dec 2012 23:37:14 +0000 (23:37 +0000)
commitfaa0bb3fa1ec71cf5edbad4e8da42dafbcf936bd
tree1035bf36c7c2eaa8e211d7d50befd059dd558988
parent95cd27265e42d2fee15ff6c6c4e2d6c1f0042c6b
Rewrote the bitfield logic.  Major changes include:

- Removed the BitfieldMap class because it is unnecessary.
  We now just track the most recently added field.

- Moved the code that calculates bitfield widths so it
  can also be used to determine whether it's necessary
  to insert anonymous fields.

- Simplified the anonymous field calculation code into
  three cases (two of which are resolved identically).

- Beefed up the bitfield testcase.

llvm-svn: 169449
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h
lldb/test/lang/c/bitfields/TestBitfields.py
lldb/test/lang/c/bitfields/main.c