aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCMachOStreamer.cpp
diff options
context:
space:
mode:
authorAlexis Engelke <engelke@in.tum.de>2024-08-14 09:24:07 +0200
committerGitHub <noreply@github.com>2024-08-14 09:24:07 +0200
commitf1cb64b6f07184a3624ebb77f3f0e0bddafea1a4 (patch)
tree57a24b64f2f58b12fa1295888d8f4a87c0071029 /llvm/lib/MC/MCMachOStreamer.cpp
parent829992cf21e9220bbf7985073745ee8f09b0b7f1 (diff)
downloadllvm-f1cb64b6f07184a3624ebb77f3f0e0bddafea1a4.zip
llvm-f1cb64b6f07184a3624ebb77f3f0e0bddafea1a4.tar.gz
llvm-f1cb64b6f07184a3624ebb77f3f0e0bddafea1a4.tar.bz2
[MC] Remove Darwin SDK/Version from ObjFileInfo (#103025)
There's only a single user (MCMachOStreamer), so it makes more sense to move the version emission to the source of the data.
Diffstat (limited to 'llvm/lib/MC/MCMachOStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCMachOStreamer.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp
index 528caa1..2e3b67e 100644
--- a/llvm/lib/MC/MCMachOStreamer.cpp
+++ b/llvm/lib/MC/MCMachOStreamer.cpp
@@ -533,14 +533,8 @@ MCStreamer *llvm::createMachOStreamer(MCContext &Context,
std::unique_ptr<MCCodeEmitter> &&CE,
bool DWARFMustBeAtTheEnd,
bool LabelSections) {
- MCMachOStreamer *S = new MCMachOStreamer(
- Context, std::move(MAB), std::move(OW), std::move(CE), LabelSections);
- const Triple &Target = Context.getTargetTriple();
- S->emitVersionForTarget(
- Target, Context.getObjectFileInfo()->getSDKVersion(),
- Context.getObjectFileInfo()->getDarwinTargetVariantTriple(),
- Context.getObjectFileInfo()->getDarwinTargetVariantSDKVersion());
- return S;
+ return new MCMachOStreamer(Context, std::move(MAB), std::move(OW),
+ std::move(CE), LabelSections);
}
// The AddrSig section uses a series of relocations to refer to the symbols that