summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCSectionELF.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-11-06 15:30:45 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-11-06 15:30:45 +0000
commit889d7bb4cbc8f1d7807e522bb45d0084b118c27e (patch)
treef9df98c519307e85ee4bda26bc4d4590e88538e8 /llvm/lib/MC/MCSectionELF.cpp
parent1954c614d4049bedaae00905a2c22ee4f671b946 (diff)
downloadbcm5719-llvm-889d7bb4cbc8f1d7807e522bb45d0084b118c27e.tar.gz
bcm5719-llvm-889d7bb4cbc8f1d7807e522bb45d0084b118c27e.zip
Bring r252305 back with a test fix.
We now create the .eh_frame section early, just like every other special section. This means that the special flags are visible in code that explicitly asks for ".eh_frame". llvm-svn: 252313
Diffstat (limited to 'llvm/lib/MC/MCSectionELF.cpp')
-rw-r--r--llvm/lib/MC/MCSectionELF.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCSectionELF.cpp b/llvm/lib/MC/MCSectionELF.cpp
index 92d2b9667c8..5a0bb7fe986 100644
--- a/llvm/lib/MC/MCSectionELF.cpp
+++ b/llvm/lib/MC/MCSectionELF.cpp
@@ -133,6 +133,8 @@ void MCSectionELF::PrintSwitchToSection(const MCAsmInfo &MAI,
OS << "note";
else if (Type == ELF::SHT_PROGBITS)
OS << "progbits";
+ else if (Type == ELF::SHT_X86_64_UNWIND)
+ OS << "unwind";
if (EntrySize) {
assert(Flags & ELF::SHF_MERGE);
OpenPOWER on IntegriCloud