summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorMatheus Almeida <matheus.almeida@imgtec.com>2014-03-26 15:44:18 +0000
committerMatheus Almeida <matheus.almeida@imgtec.com>2014-03-26 15:44:18 +0000
commitab5633b70c292592f68c9ae65fc2203fbe13f791 (patch)
tree17bf76d8e58858faad34641abbb3ba013749479a /llvm/lib/Target
parent597e81dea1059c8a075f29f5fcadcb1ae58e42e3 (diff)
downloadbcm5719-llvm-ab5633b70c292592f68c9ae65fc2203fbe13f791.tar.gz
bcm5719-llvm-ab5633b70c292592f68c9ae65fc2203fbe13f791.zip
[mips] Add support to the '.dword' directive.
The '.dword' directive accepts a list of expressions and emits them in 8-byte chunks in successive locations. llvm-svn: 204822
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
index 88e1407583a..36c4e2aa9ed 100644
--- a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
+++ b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
@@ -2629,6 +2629,11 @@ bool MipsAsmParser::parseDirectiveOption() {
bool MipsAsmParser::ParseDirective(AsmToken DirectiveID) {
StringRef IDVal = DirectiveID.getString();
+ if (IDVal == ".dword") {
+ parseDataDirective(8, DirectiveID.getLoc());
+ return false;
+ }
+
if (IDVal == ".ent") {
// Ignore this directive for now.
Parser.Lex();
OpenPOWER on IntegriCloud