[llvm-commits] [llvm] r80341 - in /llvm/trunk: include/llvm/MC/MCStreamer.h lib/MC/MCAsmStreamer.cpp lib/MC/MCMachOStreamer.cpp lib/MC/MCNullStreamer.cpp

Daniel Dunbar daniel at zuster.org
Thu Aug 27 22:48:22 PDT 2009


Author: ddunbar
Date: Fri Aug 28 00:48:22 2009
New Revision: 80341

URL: http://llvm.org/viewvc/llvm-project?rev=80341&view=rev
Log:
llvm-mc: Add const to EmitZeroFill section argument.

Modified:
    llvm/trunk/include/llvm/MC/MCStreamer.h
    llvm/trunk/lib/MC/MCAsmStreamer.cpp
    llvm/trunk/lib/MC/MCMachOStreamer.cpp
    llvm/trunk/lib/MC/MCNullStreamer.cpp

Modified: llvm/trunk/include/llvm/MC/MCStreamer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCStreamer.h?rev=80341&r1=80340&r2=80341&view=diff

==============================================================================
--- llvm/trunk/include/llvm/MC/MCStreamer.h (original)
+++ llvm/trunk/include/llvm/MC/MCStreamer.h Fri Aug 28 00:48:22 2009
@@ -164,7 +164,7 @@
     /// @param Symbol - The zerofill symbol to emit, if non-NULL.
     /// @param Size - The size of the zerofill symbol.
     /// @param Pow2Alignment - The alignment of the zerofill symbol if non-zero.
-    virtual void EmitZerofill(MCSection *Section, MCSymbol *Symbol = 0,
+    virtual void EmitZerofill(const MCSection *Section, MCSymbol *Symbol = 0,
                               unsigned Size = 0,unsigned Pow2Alignment = 0) = 0;
 
     /// @}

Modified: llvm/trunk/lib/MC/MCAsmStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCAsmStreamer.cpp?rev=80341&r1=80340&r2=80341&view=diff

==============================================================================
--- llvm/trunk/lib/MC/MCAsmStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCAsmStreamer.cpp Fri Aug 28 00:48:22 2009
@@ -58,7 +58,7 @@
   virtual void EmitCommonSymbol(MCSymbol *Symbol, unsigned Size,
                                 unsigned Pow2Alignment, bool IsLocal);
 
-  virtual void EmitZerofill(MCSection *Section, MCSymbol *Symbol = NULL,
+  virtual void EmitZerofill(const MCSection *Section, MCSymbol *Symbol = 0,
                             unsigned Size = 0, unsigned Pow2Alignment = 0);
 
   virtual void EmitBytes(const StringRef &Data);
@@ -189,7 +189,7 @@
   OS << '\n';
 }
 
-void MCAsmStreamer::EmitZerofill(MCSection *Section, MCSymbol *Symbol,
+void MCAsmStreamer::EmitZerofill(const MCSection *Section, MCSymbol *Symbol,
                                  unsigned Size, unsigned Pow2Alignment) {
   // Note: a .zerofill directive does not switch sections.
   OS << ".zerofill ";

Modified: llvm/trunk/lib/MC/MCMachOStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCMachOStreamer.cpp?rev=80341&r1=80340&r2=80341&view=diff

==============================================================================
--- llvm/trunk/lib/MC/MCMachOStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCMachOStreamer.cpp Fri Aug 28 00:48:22 2009
@@ -107,7 +107,7 @@
   virtual void EmitCommonSymbol(MCSymbol *Symbol, unsigned Size,
                                 unsigned Pow2Alignment, bool IsLocal);
 
-  virtual void EmitZerofill(MCSection *Section, MCSymbol *Symbol = NULL,
+  virtual void EmitZerofill(const MCSection *Section, MCSymbol *Symbol = 0,
                             unsigned Size = 0, unsigned Pow2Alignment = 0);
 
   virtual void EmitBytes(const StringRef &Data);
@@ -273,7 +273,7 @@
   llvm_unreachable("FIXME: Not yet implemented!");
 }
 
-void MCMachOStreamer::EmitZerofill(MCSection *Section, MCSymbol *Symbol,
+void MCMachOStreamer::EmitZerofill(const MCSection *Section, MCSymbol *Symbol,
                                    unsigned Size, unsigned Pow2Alignment) {
   llvm_unreachable("FIXME: Not yet implemented!");
 }

Modified: llvm/trunk/lib/MC/MCNullStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCNullStreamer.cpp?rev=80341&r1=80340&r2=80341&view=diff

==============================================================================
--- llvm/trunk/lib/MC/MCNullStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCNullStreamer.cpp Fri Aug 28 00:48:22 2009
@@ -46,7 +46,7 @@
     virtual void EmitCommonSymbol(MCSymbol *Symbol, unsigned Size,
                                   unsigned Pow2Alignment, bool IsLocal) {}
 
-    virtual void EmitZerofill(MCSection *Section, MCSymbol *Symbol = NULL,
+    virtual void EmitZerofill(const MCSection *Section, MCSymbol *Symbol = 0,
                               unsigned Size = 0, unsigned Pow2Alignment = 0) {}
 
     virtual void EmitBytes(const StringRef &Data) {}





More information about the llvm-commits mailing list