summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly
diff options
context:
space:
mode:
authorJF Bastien <jfb@google.com>2015-08-25 22:23:15 +0000
committerJF Bastien <jfb@google.com>2015-08-25 22:23:15 +0000
commit289287060b7076935b544ba60cc6b5b5091da7c8 (patch)
tree0a8d299c0e96acd034a95ceffeef34e4b10f77de /llvm/lib/Target/WebAssembly
parentf8af87957c2e1069f730e2363b4ad07727f05582 (diff)
downloadbcm5719-llvm-289287060b7076935b544ba60cc6b5b5091da7c8.tar.gz
bcm5719-llvm-289287060b7076935b544ba60cc6b5b5091da7c8.zip
WebAssembly: comment out .globl when printing textual assembly
Do the same for .weak (not implemented for now, but may as well to it). Update comment string to two semicolons. llvm-svn: 245982
Diffstat (limited to 'llvm/lib/Target/WebAssembly')
-rw-r--r--llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCAsmInfo.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCAsmInfo.cpp b/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCAsmInfo.cpp
index c3ab48fd405..e8732abbbc7 100644
--- a/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCAsmInfo.cpp
+++ b/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCAsmInfo.cpp
@@ -28,7 +28,7 @@ WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(const Triple &T) {
// TODO: What should MaxInstLength be?
// The s-expression format of WebAssembly uses LISP-style comments.
- CommentString = ";";
+ CommentString = ";;";
PrivateGlobalPrefix = "";
PrivateLabelPrefix = "";
@@ -52,5 +52,8 @@ WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(const Triple &T) {
// For now, WebAssembly does not support exceptions.
ExceptionsType = ExceptionHandling::None;
+ WeakDirective = "\t;; .weak\t";
+ GlobalDirective = "\t;; .globl\t";
+
// TODO: UseIntegratedAssembler?
}
OpenPOWER on IntegriCloud