mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rename swift sections from swift4 to swift5
rdar://38465220
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user