Skip to content

Commit 25465bd

Browse files
committed
Revert "IRGen: address a TODO in the type metadata emission"
This reverts commit b9066c9. It is still triggering relocation- related errors on some CI configurations.
1 parent 29bd44b commit 25465bd

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

lib/IRGen/GenMeta.cpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,16 +1989,11 @@ llvm::Value *IRGenFunction::emitTypeLayoutRef(SILType type) {
19891989

19901990
void IRGenModule::setTrueConstGlobal(llvm::GlobalVariable *var) {
19911991
switch (TargetInfo.OutputObjectFormat) {
1992-
case llvm::Triple::UnknownObjectFormat:
1993-
llvm_unreachable("unknown object format");
19941992
case llvm::Triple::MachO:
1995-
var->setSection("__TEXT,__const");
1993+
var->setSection("__TEXT, __const");
19961994
break;
1997-
case llvm::Triple::ELF:
1998-
var->setSection(".rodata");
1999-
break;
2000-
case llvm::Triple::COFF:
2001-
var->setSection(".rdata");
1995+
// TODO: ELF?
1996+
default:
20021997
break;
20031998
}
20041999
}

test/IRGen/nominal-type-section.swift

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)