From ba95a7cd8d38100bab5a97e0a181d20dd1a073e7 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 11 Aug 2009 04:44:00 +0000 Subject: llvm-mc: Accept .word as a synonym for .short llvm-svn: 78641 --- llvm/tools/llvm-mc/AsmParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/tools/llvm-mc/AsmParser.cpp') diff --git a/llvm/tools/llvm-mc/AsmParser.cpp b/llvm/tools/llvm-mc/AsmParser.cpp index b766830bf14..eec4cc8829b 100644 --- a/llvm/tools/llvm-mc/AsmParser.cpp +++ b/llvm/tools/llvm-mc/AsmParser.cpp @@ -517,7 +517,7 @@ bool AsmParser::ParseStatement() { // FIXME: Target hooks for size? Also for "word", "hword". if (IDVal == ".byte") return ParseDirectiveValue(1); - if (IDVal == ".short") + if (IDVal == ".short" || IDVal == ".word") return ParseDirectiveValue(2); if (IDVal == ".long") return ParseDirectiveValue(4); -- cgit v1.2.3