llvm-mc: Add const to EmitZeroFill section argument.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80341 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2009-08-28 05:48:22 +00:00
parent 6c31b0575c
commit 8751b94ffb
4 changed files with 6 additions and 6 deletions

View File

@ -164,7 +164,7 @@ namespace llvm {
/// @param Symbol - The zerofill symbol to emit, if non-NULL. /// @param Symbol - The zerofill symbol to emit, if non-NULL.
/// @param Size - The size of the zerofill symbol. /// @param Size - The size of the zerofill symbol.
/// @param Pow2Alignment - The alignment of the zerofill symbol if non-zero. /// @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; unsigned Size = 0,unsigned Pow2Alignment = 0) = 0;
/// @} /// @}

View File

@ -58,7 +58,7 @@ public:
virtual void EmitCommonSymbol(MCSymbol *Symbol, unsigned Size, virtual void EmitCommonSymbol(MCSymbol *Symbol, unsigned Size,
unsigned Pow2Alignment, bool IsLocal); 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); unsigned Size = 0, unsigned Pow2Alignment = 0);
virtual void EmitBytes(const StringRef &Data); virtual void EmitBytes(const StringRef &Data);
@ -189,7 +189,7 @@ void MCAsmStreamer::EmitCommonSymbol(MCSymbol *Symbol, unsigned Size,
OS << '\n'; OS << '\n';
} }
void MCAsmStreamer::EmitZerofill(MCSection *Section, MCSymbol *Symbol, void MCAsmStreamer::EmitZerofill(const MCSection *Section, MCSymbol *Symbol,
unsigned Size, unsigned Pow2Alignment) { unsigned Size, unsigned Pow2Alignment) {
// Note: a .zerofill directive does not switch sections. // Note: a .zerofill directive does not switch sections.
OS << ".zerofill "; OS << ".zerofill ";

View File

@ -107,7 +107,7 @@ public:
virtual void EmitCommonSymbol(MCSymbol *Symbol, unsigned Size, virtual void EmitCommonSymbol(MCSymbol *Symbol, unsigned Size,
unsigned Pow2Alignment, bool IsLocal); 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); unsigned Size = 0, unsigned Pow2Alignment = 0);
virtual void EmitBytes(const StringRef &Data); virtual void EmitBytes(const StringRef &Data);
@ -273,7 +273,7 @@ void MCMachOStreamer::EmitCommonSymbol(MCSymbol *Symbol, unsigned Size,
llvm_unreachable("FIXME: Not yet implemented!"); 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) { unsigned Size, unsigned Pow2Alignment) {
llvm_unreachable("FIXME: Not yet implemented!"); llvm_unreachable("FIXME: Not yet implemented!");
} }

View File

@ -46,7 +46,7 @@ namespace {
virtual void EmitCommonSymbol(MCSymbol *Symbol, unsigned Size, virtual void EmitCommonSymbol(MCSymbol *Symbol, unsigned Size,
unsigned Pow2Alignment, bool IsLocal) {} 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) {} unsigned Size = 0, unsigned Pow2Alignment = 0) {}
virtual void EmitBytes(const StringRef &Data) {} virtual void EmitBytes(const StringRef &Data) {}