summaryrefslogtreecommitdiff
path: root/lib/MC/MCAsmStreamer.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-13 23:36:34 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-13 23:36:34 +0000
commit011e4db845b5c4166142338c77adc8ac03e5e041 (patch)
tree8d5b98d36b1b7ca07675d3458258d657efbaae93 /lib/MC/MCAsmStreamer.cpp
parentfdf229eda95a542fc34d5182e1a91a22789ba122 (diff)
downloadllvm-011e4db845b5c4166142338c77adc8ac03e5e041.tar.gz
llvm-011e4db845b5c4166142338c77adc8ac03e5e041.tar.bz2
llvm-011e4db845b5c4166142338c77adc8ac03e5e041.tar.xz
llvm-mc: Add dummy MCStreamer implementation, (eventually) for use in profiling.
- Currently unused. - A few other random comment fixes lumped in. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78960 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCAsmStreamer.cpp')
-rw-r--r--lib/MC/MCAsmStreamer.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp
index 5457913b94..75390c695a 100644
--- a/lib/MC/MCAsmStreamer.cpp
+++ b/lib/MC/MCAsmStreamer.cpp
@@ -155,6 +155,7 @@ void MCAsmStreamer::EmitLabel(MCSymbol *Symbol) {
void MCAsmStreamer::EmitAssemblerFlag(AssemblerFlag Flag) {
switch (Flag) {
+ default: assert(0 && "Invalid flag!");
case SubsectionsViaSymbols: OS << ".subsections_via_symbols"; break;
}
OS << '\n';
@@ -215,10 +216,7 @@ void MCAsmStreamer::EmitCommonSymbol(MCSymbol *Symbol, unsigned Size,
void MCAsmStreamer::EmitZerofill(MCSection *Section, MCSymbol *Symbol,
unsigned Size, unsigned Pow2Alignment) {
- // Note: a .zerofill directive does not switch sections
- // FIXME: Really we would like the segment and section names as well as the
- // section type to be separate values instead of embedded in the name. Not
- // all assemblers understand all this stuff though.
+ // Note: a .zerofill directive does not switch sections.
OS << ".zerofill ";
// This is a mach-o specific directive.
@@ -226,7 +224,6 @@ void MCAsmStreamer::EmitZerofill(MCSection *Section, MCSymbol *Symbol,
OS << '"' << MOSection->getSegmentName() << ","
<< MOSection->getSectionName() << '"';
-
if (Symbol != NULL) {
OS << ',' << Symbol << ',' << Size;
if (Pow2Alignment != 0)