llvm-mc: zerofill shouldn't print quotes around the section,segment.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 14 Aug 2009 18:51:45 +0000 (18:51 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 14 Aug 2009 18:51:45 +0000 (18:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79017 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCAsmStreamer.cpp
test/MC/AsmParser/directive_zerofill.s

index ac2aabdf8e95701800a8037bc9c93f15520ea59a..43ce04ffdfd1c4c70184eeabdeae89b95dc6348e 100644 (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;
index fd96812592228e86369424481b2da74658b4430e..4b26f9b68c749174cb9e275909eade96f2dc47f8 100644 (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