diff options
author | Matheus Almeida <matheus.almeida@imgtec.com> | 2014-03-26 15:44:18 +0000 |
---|---|---|
committer | Matheus Almeida <matheus.almeida@imgtec.com> | 2014-03-26 15:44:18 +0000 |
commit | ab5633b70c292592f68c9ae65fc2203fbe13f791 (patch) | |
tree | 17bf76d8e58858faad34641abbb3ba013749479a /llvm/lib/Target | |
parent | 597e81dea1059c8a075f29f5fcadcb1ae58e42e3 (diff) | |
download | bcm5719-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.cpp | 5 |
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(); |