summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCStreamer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-01-24 03:54:40 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-01-24 03:54:40 +0000
commit0e2ccb2df10ae5e7be0983fd1565cbacb19fba33 (patch)
tree530c63f02c12e6c1346e338bea5fd2f974ee840e /llvm/lib/MC/MCStreamer.cpp
parent0e50a883ff369a24f291c2e3b40e6ac1d4742059 (diff)
downloadbcm5719-llvm-0e2ccb2df10ae5e7be0983fd1565cbacb19fba33.tar.gz
bcm5719-llvm-0e2ccb2df10ae5e7be0983fd1565cbacb19fba33.zip
Simplify the logic for deciding when to initialize the sections.
llvm-svn: 199971
Diffstat (limited to 'llvm/lib/MC/MCStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCStreamer.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp
index 10b2f3f9bd0..0b7c9067190 100644
--- a/llvm/lib/MC/MCStreamer.cpp
+++ b/llvm/lib/MC/MCStreamer.cpp
@@ -29,8 +29,7 @@ void MCTargetStreamer::emitLabel(MCSymbol *Symbol) {}
MCStreamer::MCStreamer(MCContext &Ctx, MCTargetStreamer *TargetStreamer)
: Context(Ctx), TargetStreamer(TargetStreamer), EmitEHFrame(true),
- EmitDebugFrame(false), CurrentW64UnwindInfo(0), LastSymbol(0),
- AutoInitSections(false) {
+ EmitDebugFrame(false), CurrentW64UnwindInfo(0), LastSymbol(0) {
SectionStack.push_back(std::pair<MCSectionSubPair, MCSectionSubPair>());
if (TargetStreamer)
TargetStreamer->setStreamer(this);
@@ -201,7 +200,7 @@ void MCStreamer::EmitEHSymAttributes(const MCSymbol *Symbol,
MCSymbol *EHSymbol) {
}
-void MCStreamer::InitSections() {
+void MCStreamer::InitSections(bool Force) {
SwitchSection(getContext().getObjectFileInfo()->getTextSection());
}
OpenPOWER on IntegriCloud