diff options
author | Chris Lattner <sabre@nondot.org> | 2006-02-15 07:07:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-02-15 07:07:14 +0000 |
commit | 45090476be69a3f860e83f2c0fe2a2df7e1b4c89 (patch) | |
tree | 772fe01e8389d438977ac248dedef300b72ac596 | |
parent | 2fecc0f9e2c2f7ba85326657856a470cb7d218a5 (diff) | |
download | llvm-45090476be69a3f860e83f2c0fe2a2df7e1b4c89.tar.gz llvm-45090476be69a3f860e83f2c0fe2a2df7e1b4c89.tar.bz2 llvm-45090476be69a3f860e83f2c0fe2a2df7e1b4c89.tar.xz |
Sparc actually *DOES* have a directive for emitting zeros. In fact, it requires
it, because this:
.bss
X:
.byte 0
results in the assembler warning: "initialization in bss segment". Annoying.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26204 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/Sparc/SparcAsmPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Sparc/SparcAsmPrinter.cpp b/lib/Target/Sparc/SparcAsmPrinter.cpp index 6d5c850685..5eacb816ae 100644 --- a/lib/Target/Sparc/SparcAsmPrinter.cpp +++ b/lib/Target/Sparc/SparcAsmPrinter.cpp @@ -40,7 +40,7 @@ namespace { Data16bitsDirective = "\t.half\t"; Data32bitsDirective = "\t.word\t"; Data64bitsDirective = 0; // .xword is only supported by V9. - ZeroDirective = 0; // no .zero or .space! + ZeroDirective = "\t.skip\t"; CommentString = "!"; ConstantPoolSection = "\t.section \".rodata\",#alloc\n"; } |