Rename swift sections from swift4 to swift5

rdar://38465220
This commit is contained in:
Arnold Schwaighofer
2018-05-23 11:38:51 -07:00
parent 66628f6ed6
commit cc7f207cec
16 changed files with 129 additions and 129 deletions

View File

@@ -247,7 +247,7 @@ protected:
// Others, such as capture descriptors, do not have a name.
} else {
var = B.finishAndCreateGlobal("\x01l__swift4_reflection_descriptor",
var = B.finishAndCreateGlobal("\x01l__swift5_reflection_descriptor",
Alignment(4), /*isConstant*/ true,
llvm::GlobalValue::PrivateLinkage);
}
@@ -766,12 +766,12 @@ static std::string getReflectionSectionName(IRGenModule &IGM,
OS << ".sw5" << FourCC << "$B";
break;
case llvm::Triple::ELF:
OS << "swift4_" << LongName;
OS << "swift5_" << LongName;
break;
case llvm::Triple::MachO:
assert(LongName.size() <= 7 &&
"Mach-O section name length must be <= 16 characters");
OS << "__TEXT,__swift4_" << LongName << ", regular, no_dead_strip";
OS << "__TEXT,__swift5_" << LongName << ", regular, no_dead_strip";
break;
case llvm::Triple::Wasm:
llvm_unreachable("web assembly object format is not supported.");