summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-04-18 18:30:16 +0000
committerBill Wendling <isanbard@gmail.com>2013-04-18 18:30:16 +0000
commitc62789f47e2c2736a3969851dbd00845b92b8445 (patch)
treef984785fe13cf732e59b001342c0c61033c932cf /llvm
parente01e07b6e76ad6f571cefe679d112fede88cf1db (diff)
downloadbcm5719-llvm-c62789f47e2c2736a3969851dbd00845b92b8445.tar.gz
bcm5719-llvm-c62789f47e2c2736a3969851dbd00845b92b8445.zip
Fix comment. Patch by Stephen Lin.
llvm-svn: 179780
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/AsmParser/LLParser.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 1a15f6c4cd7..8fa626dcc9d 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -878,8 +878,9 @@ bool LLParser::ParseFnAttributeValuePairs(AttrBuilder &B,
// Target-independent attributes:
case lltok::kw_align: {
- // As a hack, we allow "align 2" on functions as a synonym for "alignstack
- // 2".
+ // As a hack, we allow function alignment to be initially parsed as an
+ // attribute on a function declaration/definition or added to an attribute
+ // group and later moved to the alignment field.
unsigned Alignment;
if (inAttrGrp) {
Lex.Lex();
OpenPOWER on IntegriCloud