summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCSection.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2020-01-05 14:02:18 -0800
committerFangrui Song <maskray@google.com>2020-01-05 14:20:34 -0800
commit5511861e6dc81e702587bb4d07deba35571db293 (patch)
treef08770941983dfe5cb71eb6b45afe06172017431 /llvm/lib/MC/MCSection.cpp
parent35efef5351e3b3a4e50bcd862407ef7edc0b2166 (diff)
downloadbcm5719-llvm-5511861e6dc81e702587bb4d07deba35571db293.tar.gz
bcm5719-llvm-5511861e6dc81e702587bb4d07deba35571db293.zip
[MC][ARM] Delete MCSection::HasData and move SHF_ARM_PURECODE logic to ARMELFObjectWriter::addTargetSectionFlags
This simplifies the generic interface and also makes SHF_ARM_PURECODE more robust (fixes a TODO). Inspecting MCDataFragment contents covers more cases than MCObjectStreamer::EmitBytes.
Diffstat (limited to 'llvm/lib/MC/MCSection.cpp')
-rw-r--r--llvm/lib/MC/MCSection.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCSection.cpp b/llvm/lib/MC/MCSection.cpp
index 7a953054e72..074534bd73d 100644
--- a/llvm/lib/MC/MCSection.cpp
+++ b/llvm/lib/MC/MCSection.cpp
@@ -22,8 +22,7 @@ using namespace llvm;
MCSection::MCSection(SectionVariant V, SectionKind K, MCSymbol *Begin)
: Begin(Begin), BundleGroupBeforeFirstInst(false), HasInstructions(false),
- HasData(false), IsRegistered(false), DummyFragment(this), Variant(V),
- Kind(K) {}
+ IsRegistered(false), DummyFragment(this), Variant(V), Kind(K) {}
MCSymbol *MCSection::getEndSymbol(MCContext &Ctx) {
if (!End)
OpenPOWER on IntegriCloud