diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-09-02 18:53:37 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-09-02 18:53:37 +0000 |
commit | 1674b0b0e4972b844833f253286cbf99a6e99d6e (patch) | |
tree | 14ea7fe3f3ffc71b12eb5dd1dadb633812d116aa /lib/MC/MCAsmStreamer.cpp | |
parent | 3e234e757965a3c30f31227b60575841441368b6 (diff) |
Add AsmParser support for the ELF .previous directive. Patch by Roman Divacky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112849 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCAsmStreamer.cpp')
-rw-r--r-- | lib/MC/MCAsmStreamer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp index 4ededb24fd..1cc8fb0b54 100644 --- a/lib/MC/MCAsmStreamer.cpp +++ b/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); } |