summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2016-05-19 15:58:05 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2016-05-19 15:58:05 +0000
commitb29ea6447e0ea7ea66e76617f808f06a7fef8fdd (patch)
tree373ef0c2b69d8ea883af3d9c9069ff9813c19e6e /include
parent88f5077adc71168bf6ca078515c941f15343e37f (diff)
Temporarily revert r270070
It broke buildbot: http://lab.llvm.org:8011/builders/clang-s390x-linux/builds/4817/steps/ninja%20check%201/logs/stdio Actually it is just because D20273 not yet commited, but these 2 were crossing with each other, and I`ll better find the way to land them separatelly soon. Initial commit message: [llvm-mc] - Teach llvm-mc to generate compressed debug sections in zlib style. Before this patch llvm-mc generated zlib-gnu styled sections. That means no SHF_COMPRESSED flag was set, magic 'zlib' signature was used in combination with full size field. Sections were renamed to "*.z*". This patch reimplements the compression style to zlib one as zlib-gnu looks to be depricated everywhere. Differential revision: http://reviews.llvm.org/D20331 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270075 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/MC/MCContext.h2
-rw-r--r--include/llvm/MC/MCSectionELF.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/MC/MCContext.h b/include/llvm/MC/MCContext.h
index 07e0ab62942..98dd127c0c0 100644
--- a/include/llvm/MC/MCContext.h
+++ b/include/llvm/MC/MCContext.h
@@ -385,6 +385,8 @@ namespace llvm {
const MCSymbolELF *Group,
const MCSectionELF *Associated);
+ void renameELFSection(MCSectionELF *Section, StringRef Name);
+
MCSectionELF *createELFGroupSection(const MCSymbolELF *Group);
MCSectionCOFF *getCOFFSection(StringRef Section, unsigned Characteristics,
diff --git a/include/llvm/MC/MCSectionELF.h b/include/llvm/MC/MCSectionELF.h
index a4a20a31b09..b3bb3ad4e02 100644
--- a/include/llvm/MC/MCSectionELF.h
+++ b/include/llvm/MC/MCSectionELF.h
@@ -62,6 +62,8 @@ private:
Group->setIsSignature();
}
+ void setSectionName(StringRef Name) { SectionName = Name; }
+
public:
~MCSectionELF();
@@ -73,7 +75,6 @@ public:
unsigned getType() const { return Type; }
unsigned getFlags() const { return Flags; }
unsigned getEntrySize() const { return EntrySize; }
- void setFlags(unsigned F) { Flags = F; }
const MCSymbolELF *getGroup() const { return Group; }
void PrintSwitchToSection(const MCAsmInfo &MAI, raw_ostream &OS,