diff options
author | Fangrui Song <maskray@google.com> | 2020-01-05 14:02:18 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-01-05 14:20:34 -0800 |
commit | 5511861e6dc81e702587bb4d07deba35571db293 (patch) | |
tree | f08770941983dfe5cb71eb6b45afe06172017431 /llvm/include | |
parent | 35efef5351e3b3a4e50bcd862407ef7edc0b2166 (diff) | |
download | bcm5719-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/include')
-rw-r--r-- | llvm/include/llvm/MC/MCSection.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/include/llvm/MC/MCSection.h b/llvm/include/llvm/MC/MCSection.h index d66e42b656b..d80cc5b086b 100644 --- a/llvm/include/llvm/MC/MCSection.h +++ b/llvm/include/llvm/MC/MCSection.h @@ -78,10 +78,6 @@ private: /// Whether this section has had instructions emitted into it. bool HasInstructions : 1; - /// Whether this section has had data emitted into it. - /// Right now this is only used by the ARM backend. - bool HasData : 1; - bool IsRegistered : 1; MCDummyFragment DummyFragment; @@ -150,9 +146,6 @@ public: bool hasInstructions() const { return HasInstructions; } void setHasInstructions(bool Value) { HasInstructions = Value; } - bool hasData() const { return HasData; } - void setHasData(bool Value) { HasData = Value; } - bool isRegistered() const { return IsRegistered; } void setIsRegistered(bool Value) { IsRegistered = Value; } |