From: Daniel Dunbar Date: Fri, 14 Aug 2009 18:51:45 +0000 (+0000) Subject: llvm-mc: zerofill shouldn't print quotes around the section,segment. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=12de0df59fdab799d8d1432fcfd9190829d7f292;p=oota-llvm.git 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 --- diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp index ac2aabdf8e9..43ce04ffdfd 100644 --- a/lib/MC/MCAsmStreamer.cpp +++ b/lib/MC/MCAsmStreamer.cpp @@ -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; diff --git a/test/MC/AsmParser/directive_zerofill.s b/test/MC/AsmParser/directive_zerofill.s index fd968125922..4b26f9b68c7 100644 --- a/test/MC/AsmParser/directive_zerofill.s +++ b/test/MC/AsmParser/directive_zerofill.s @@ -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