aboutsummaryrefslogtreecommitdiff
path: root/lib/MC
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2011-02-21 01:07:42 +0000
committerJoerg Sonnenberger <joerg@bec.de>2011-02-21 01:07:42 +0000
commit7d0805dcb82e9ba1d90ce8d702169683b9caded7 (patch)
tree1da9b4643bf13989ccd7b510d4cf678a6dce5a4a /lib/MC
parent8d7285d0e5eb5937a6682e884b883516377e903d (diff)
Use a vector of pairs to implement the section stack, not two
independent vectors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126099 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r--lib/MC/MCStreamer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MC/MCStreamer.cpp b/lib/MC/MCStreamer.cpp
index 3dcdba1313..4b302c8602 100644
--- a/lib/MC/MCStreamer.cpp
+++ b/lib/MC/MCStreamer.cpp
@@ -20,8 +20,8 @@
using namespace llvm;
MCStreamer::MCStreamer(MCContext &Ctx) : Context(Ctx) {
- PrevSectionStack.push_back(NULL);
- CurSectionStack.push_back(NULL);
+ const MCSection *section = NULL;
+ SectionStack.push_back(std::make_pair(section, section));
}
MCStreamer::~MCStreamer() {