[llvm-commits] [PATCH] some cleanup in DataLayout

Patrik Hägglund H patrik.h.hagglund at ericsson.com
Tue Nov 13 05:00:55 PST 2012


Here are two minor cleanup patches for DataLayout. (Found during preparing a series of patches for non-8-bit bytes.)

Subject: [PATCH 1/2] Revert some redundant parts of r142605.

This seems like redundant leftovers from r142288 - exposing
TargetData::parseSpecifier to LLParser - which got reverted. Removes
redunant td != NULL checks in parseSpecifier, and simplifies the
interface to parseSpecifier and init.
---
 include/llvm/DataLayout.h | 20 ++++++++------------
 lib/VMCore/DataLayout.cpp | 36 +++++++++++++++---------------------
 2 files changed, 23 insertions(+), 33 deletions(-)


Subject: [PATCH 2/2] Change size of VoidTyID from 8 to 0 bits.

According to Type.h, VoidTyID is a "type with no size".
---
 lib/VMCore/DataLayout.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Regards,
Patrik Hägglund
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Revert-some-redundant-parts-of-r142605.patch
Type: application/octet-stream
Size: 5789 bytes
Desc: 0001-Revert-some-redundant-parts-of-r142605.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121113/a47725f1/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Change-size-of-VoidTyID-from-8-to-0-bits.patch
Type: application/octet-stream
Size: 651 bytes
Desc: 0002-Change-size-of-VoidTyID-from-8-to-0-bits.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121113/a47725f1/attachment-0001.obj>


More information about the llvm-commits mailing list