summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mc/AsmParser.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-11 04:44:00 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-11 04:44:00 +0000
commitba95a7cd8d38100bab5a97e0a181d20dd1a073e7 (patch)
treed537141d07919fb033894b78b8854d06d0357e52 /llvm/tools/llvm-mc/AsmParser.cpp
parentcd4eee5443e86278bd85cf2e7bd5057822dcfcd1 (diff)
downloadbcm5719-llvm-ba95a7cd8d38100bab5a97e0a181d20dd1a073e7.tar.gz
bcm5719-llvm-ba95a7cd8d38100bab5a97e0a181d20dd1a073e7.zip
llvm-mc: Accept .word as a synonym for .short
llvm-svn: 78641
Diffstat (limited to 'llvm/tools/llvm-mc/AsmParser.cpp')
-rw-r--r--llvm/tools/llvm-mc/AsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud