summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-28 05:48:22 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-28 05:48:22 +0000
commitcf72e1c03ea804a5c614104094e290f3d17cd08f (patch)
tree60567afdf3562126bde7c01bfcc954ee4b9122ce /llvm/lib
parent93665faad0001e05517d4c06e975e9c5f678524c (diff)
downloadbcm5719-llvm-cf72e1c03ea804a5c614104094e290f3d17cd08f.tar.gz
bcm5719-llvm-cf72e1c03ea804a5c614104094e290f3d17cd08f.zip
llvm-mc: Add const to EmitZeroFill section argument.
llvm-svn: 80341
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/MC/MCAsmStreamer.cpp4
-rw-r--r--llvm/lib/MC/MCMachOStreamer.cpp4
-rw-r--r--llvm/lib/MC/MCNullStreamer.cpp2
3 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/MC/MCAsmStreamer.cpp b/llvm/lib/MC/MCAsmStreamer.cpp
index 60c737a9488..4c2f128b1da 100644
--- a/llvm/lib/MC/MCAsmStreamer.cpp
+++ b/llvm/lib/MC/MCAsmStreamer.cpp
@@ -58,7 +58,7 @@ public:
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 @@ void MCAsmStreamer::EmitCommonSymbol(MCSymbol *Symbol, unsigned Size,
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 ";
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp
index f5887dbc817..7e8a715eaaf 100644
--- a/llvm/lib/MC/MCMachOStreamer.cpp
+++ b/llvm/lib/MC/MCMachOStreamer.cpp
@@ -107,7 +107,7 @@ public:
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 @@ void MCMachOStreamer::EmitCommonSymbol(MCSymbol *Symbol, unsigned Size,
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!");
}
diff --git a/llvm/lib/MC/MCNullStreamer.cpp b/llvm/lib/MC/MCNullStreamer.cpp
index 61a9d49bcc9..14534ed01b1 100644
--- a/llvm/lib/MC/MCNullStreamer.cpp
+++ b/llvm/lib/MC/MCNullStreamer.cpp
@@ -46,7 +46,7 @@ namespace {
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) {}
OpenPOWER on IntegriCloud