summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCObjectStreamer.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-09-02 18:53:37 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-09-02 18:53:37 +0000
commite39017cb9735faa156e11799eaaffeeaaff18244 (patch)
tree34f06355f2105e0213c5d6eca55fd26092b3b20a /llvm/lib/MC/MCObjectStreamer.cpp
parent1ba95136f2a006f90ac819cf44b4941998030f1b (diff)
downloadbcm5719-llvm-e39017cb9735faa156e11799eaaffeeaaff18244.tar.gz
bcm5719-llvm-e39017cb9735faa156e11799eaaffeeaaff18244.zip
Add AsmParser support for the ELF .previous directive. Patch by Roman Divacky.
llvm-svn: 112849
Diffstat (limited to 'llvm/lib/MC/MCObjectStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCObjectStreamer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCObjectStreamer.cpp b/llvm/lib/MC/MCObjectStreamer.cpp
index eed4e7bd4f6..2b2385ef915 100644
--- a/llvm/lib/MC/MCObjectStreamer.cpp
+++ b/llvm/lib/MC/MCObjectStreamer.cpp
@@ -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);
}
OpenPOWER on IntegriCloud