Add support for the .zero directive.
[oota-llvm.git] / lib / MC / MCObjectStreamer.cpp
index eed4e7bd4f67db91af1400cef2cdf0d76bbc09d0..2b2385ef9156d8b89fb27f002f3630ec8c3f91e1 100644 (file)
@@ -77,6 +77,7 @@ void MCObjectStreamer::SwitchSection(const MCSection *Section) {
   // If already in this section, then this is a noop.
   if (Section == CurSection) return;
 
+  PrevSection = CurSection;
   CurSection = Section;
   CurSectionData = &getAssembler().getOrCreateSectionData(*Section);
 }