llvm-mc: zerofill shouldn't print quotes around the section,segment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79017 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2009-08-14 18:51:45 +00:00
parent 56ce0f415c
commit 12de0df59f
2 changed files with 4 additions and 5 deletions

View File

@ -190,8 +190,7 @@ void MCAsmStreamer::EmitZerofill(MCSection *Section, MCSymbol *Symbol,
// This is a mach-o specific directive.
const MCSectionMachO *MOSection = ((const MCSectionMachO*)Section);
OS << '"' << MOSection->getSegmentName() << ","
<< MOSection->getSectionName() << '"';
OS << MOSection->getSegmentName() << "," << MOSection->getSectionName();
if (Symbol != NULL) {
OS << ',' << Symbol << ',' << Size;

View File

@ -1,9 +1,9 @@
# RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
# CHECK: TEST0:
# CHECK: .zerofill "__FOO,__bar",x,1
# CHECK: .zerofill "__FOO,__bar",y,8,2
# CHECK: .zerofill "__EMPTY,__NoSymbol"
# CHECK: .zerofill __FOO,__bar,x,1
# CHECK: .zerofill __FOO,__bar,y,8,2
# CHECK: .zerofill __EMPTY,__NoSymbol
TEST0:
.zerofill __FOO, __bar, x, 2-1
.zerofill __FOO, __bar, y , 8 , 1+1