summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commiteef2f9009dad62eb594d10789a7563dc43e092a9 (patch)
tree27b8a84057de4b6f2c57c52e72e6ac5e453b3654 /llvm/lib
parentd05b352b0e5b036d67e9916936b1e59e742039fd (diff)
downloadbcm5719-llvm-eef2f9009dad62eb594d10789a7563dc43e092a9.tar.gz
bcm5719-llvm-eef2f9009dad62eb594d10789a7563dc43e092a9.zip
Use a vector of pairs to implement the section stack, not two
independent vectors. llvm-svn: 126099
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/MC/MCStreamer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp
index 3dcdba13135..4b302c8602c 100644
--- a/llvm/lib/MC/MCStreamer.cpp
+++ b/llvm/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() {
OpenPOWER on IntegriCloud