aboutsummaryrefslogtreecommitdiff
path: root/llvm/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
commitaba5fb8c9a9ab04be59d24231dd5f1032523cb11 (patch)
treee1c39b79a75ce66e0cae2064e6c5370c0fbe1a02 /llvm/lib/MC/MCAsmStreamer.cpp
parent9a1090a3995b8684445b76a368d2d41b92b5398e (diff)
downloadllvm-aba5fb8c9a9ab04be59d24231dd5f1032523cb11.zip
llvm-aba5fb8c9a9ab04be59d24231dd5f1032523cb11.tar.gz
llvm-aba5fb8c9a9ab04be59d24231dd5f1032523cb11.tar.bz2
llvm-mc: Add dummy MCStreamer implementation, (eventually) for use in profiling.
- Currently unused. - A few other random comment fixes lumped in. llvm-svn: 78960
Diffstat (limited to 'llvm/lib/MC/MCAsmStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCAsmStreamer.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/MC/MCAsmStreamer.cpp b/llvm/lib/MC/MCAsmStreamer.cpp
index 5457913..75390c6 100644
--- a/llvm/lib/MC/MCAsmStreamer.cpp
+++ b/llvm/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)