WebAssembly: use .skip instead of .zero directive
authorJF Bastien <jfb@google.com>
Thu, 7 Jan 2016 23:18:29 +0000 (23:18 +0000)
committerJF Bastien <jfb@google.com>
Thu, 7 Jan 2016 23:18:29 +0000 (23:18 +0000)
commitaf0132814087683ae35673d16ada93c2f024aa3b
tree60aaf349d9f8ec0c72ae2a040b6321c9fbb49b62
parentdcf208db214fb7f88af9717445280de39bc28637
WebAssembly: use .skip instead of .zero directive

.zero is confusing when used with two arguments. Documentation:

  This directive emits SIZE 0-valued bytes.  SIZE must be an absolute
  expression.  This directive is actually an alias for the '.skip'
  directive so in can take an optional second argument of the value to
  store in the bytes instead of zero.  Using '.zero' in this way would be
  confusing however.

Ref: https://sourceware.org/bugzilla/show_bug.cgi?id=18353

Hexagon and Sparc do the same, and it's all the same to WebAssembly so
let's pick the less confusing of the two.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257111 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCAsmInfo.cpp
test/CodeGen/WebAssembly/global.ll