aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorShubham Sandeep Rastogi <srastogi22@apple.com>2022-01-26 16:58:49 -0800
committerShubham Sandeep Rastogi <srastogi22@apple.com>2022-01-26 16:59:11 -0800
commit0303eb3cf26d3c918638b07c1e4f59f13d6f3def (patch)
tree7bcb0735596d4a3528a873ae09a2728d9acd29a1 /llvm/lib/MC/MCObjectFileInfo.cpp
parent4b3e0d2a7eb7cfc9bc6b8ec97fd42acbf6228614 (diff)
downloadllvm-0303eb3cf26d3c918638b07c1e4f59f13d6f3def.zip
llvm-0303eb3cf26d3c918638b07c1e4f59f13d6f3def.tar.gz
llvm-0303eb3cf26d3c918638b07c1e4f59f13d6f3def.tar.bz2
Revert "Emit swift5 reflection section data in dsym bundle generated by dsymutil in the Dwarf section."
This reverts commit 50f50f2582993a079dbcfb8e7ba48920f41e6be0.
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index 77b0b0e..d7f85f7 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -299,17 +299,6 @@ void MCObjectFileInfo::initMachOMCObjectFileInfo(const Triple &T) {
RemarksSection = Ctx->getMachOSection(
"__LLVM", "__remarks", MachO::S_ATTR_DEBUG, SectionKind::getMetadata());
- // The architecture of dsymutil makes it very difficult to copy the Swift
- // reflection metadata sections into the __TEXT segment, so dsymutil creates
- // these sections in the __DWARF segment instead.
- if (!Ctx->getSwift5ReflectionSegmentName().empty()) {
-#define HANDLE_SWIFT_SECTION(KIND, MACHO, ELF, COFF) \
- Swift5ReflectionSections[llvm::swift::Swift5ReflectionSectionKind::KIND] = \
- Ctx->getMachOSection(Ctx->getSwift5ReflectionSegmentName().data(), \
- MACHO, 0, SectionKind::getMetadata());
-#include "llvm/BinaryFormat/Swift.def"
- }
-
TLSExtraDataSection = TLSTLVSection;
}