We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29bd44b commit 25465bdCopy full SHA for 25465bd
lib/IRGen/GenMeta.cpp
@@ -1989,16 +1989,11 @@ llvm::Value *IRGenFunction::emitTypeLayoutRef(SILType type) {
1989
1990
void IRGenModule::setTrueConstGlobal(llvm::GlobalVariable *var) {
1991
switch (TargetInfo.OutputObjectFormat) {
1992
- case llvm::Triple::UnknownObjectFormat:
1993
- llvm_unreachable("unknown object format");
1994
case llvm::Triple::MachO:
1995
- var->setSection("__TEXT,__const");
+ var->setSection("__TEXT, __const");
1996
break;
1997
- case llvm::Triple::ELF:
1998
- var->setSection(".rodata");
1999
- break;
2000
- case llvm::Triple::COFF:
2001
- var->setSection(".rdata");
+ // TODO: ELF?
+ default:
2002
2003
}
2004
test/IRGen/nominal-type-section.swift
0 commit comments