From e39017cb9735faa156e11799eaaffeeaaff18244 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 2 Sep 2010 18:53:37 +0000 Subject: Add AsmParser support for the ELF .previous directive. Patch by Roman Divacky. llvm-svn: 112849 --- llvm/lib/MC/MCAsmStreamer.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/MC/MCAsmStreamer.cpp') diff --git a/llvm/lib/MC/MCAsmStreamer.cpp b/llvm/lib/MC/MCAsmStreamer.cpp index 4ededb24fdc..1cc8fb0b548 100644 --- a/llvm/lib/MC/MCAsmStreamer.cpp +++ b/llvm/lib/MC/MCAsmStreamer.cpp @@ -217,6 +217,7 @@ static inline int64_t truncateToSize(int64_t Value, unsigned Bytes) { void MCAsmStreamer::SwitchSection(const MCSection *Section) { assert(Section && "Cannot switch to a null section!"); if (Section != CurSection) { + PrevSection = CurSection; CurSection = Section; Section->PrintSwitchToSection(MAI, OS); } -- cgit v1.2.3