Improve documentation of the 'a' specifier and the '<abi>:<pref>' align pair.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198636 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2014-01-06 21:40:24 +00:00
parent 7397426509
commit 177648336a
2 changed files with 12 additions and 7 deletions

View File

@@ -287,6 +287,9 @@ void DataLayout::parseSpecifier(StringRef Desc) {
// Bit size.
unsigned Size = Tok.empty() ? 0 : getInt(Tok);
assert((AlignType != AGGREGATE_ALIGN || Size == 0) &&
"These specifications don't have a size");
// ABI alignment.
Split = split(Rest, ':');
unsigned ABIAlign = inBytes(getInt(Tok));