summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAsmStreamer.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/MCAsmStreamer.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/MCAsmStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCAsmStreamer.cpp1
1 files changed, 1 insertions, 0 deletions
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);
}
OpenPOWER on IntegriCloud