summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorZhan Jun Liau <zhanjunl@ca.ibm.com>2016-07-08 16:50:02 +0000
committerZhan Jun Liau <zhanjunl@ca.ibm.com>2016-07-08 16:50:02 +0000
commit7d4d436c74d220cc5f410a1893a6ea5a1140fa33 (patch)
treedc2ae3fcd20f6c23c25fdd2f7cbfd94f4a0e34e1 /llvm/lib
parent89c32a95318aa2cad998a3ccd721622d9c6c13b5 (diff)
downloadbcm5719-llvm-7d4d436c74d220cc5f410a1893a6ea5a1140fa33.tar.gz
bcm5719-llvm-7d4d436c74d220cc5f410a1893a6ea5a1140fa33.zip
[SystemZ] Add support for the .word directive.
Summary: Branch off the work to add support for the .word directive, using addAliasForDirective. Reviewers: koriakin Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D22142 llvm-svn: 274878
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp b/llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
index a894bea91b6..3923614c89d 100644
--- a/llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
+++ b/llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
@@ -391,6 +391,9 @@ public:
: MCTargetAsmParser(Options, sti), Parser(parser) {
MCAsmParserExtension::Initialize(Parser);
+ // Alias the .word directive to .short.
+ parser.addAliasForDirective(".word", ".short");
+
// Initialize the set of available features.
setAvailableFeatures(ComputeAvailableFeatures(getSTI().getFeatureBits()));
}
OpenPOWER on IntegriCloud