diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2022-03-15 13:01:22 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2022-03-15 13:01:35 +0000 |
commit | 7262eacd41997d7ca262d83367e28998662c1b21 (patch) | |
tree | b8486409413b99b1b47ddc751483d8b96d7a5786 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 991dc4b4e012ce8c7b631ae750ae6e070365c6db (diff) | |
download | llvm-7262eacd41997d7ca262d83367e28998662c1b21.zip llvm-7262eacd41997d7ca262d83367e28998662c1b21.tar.gz llvm-7262eacd41997d7ca262d83367e28998662c1b21.tar.bz2 |
Revert rG9c542a5a4e1ba36c24e48185712779df52b7f7a6 "Lower `@llvm.global_dtors` using `__cxa_atexit` on MachO"
Mane of the build bots are complaining: Unknown command line argument '-lower-global-dtors'
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index 3b21e94..0853c7a 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -1176,15 +1176,6 @@ void TargetLoweringObjectFileMachO::Initialize(MCContext &Ctx, dwarf::DW_EH_PE_indirect | dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4; } -MCSection *TargetLoweringObjectFileMachO::getStaticDtorSection( - unsigned Priority, const MCSymbol *KeySym) const { - // TODO(yln): Remove -lower-global-dtors-via-cxa-atexit fallback flag - // (LowerGlobalDtorsViaCxaAtExit) and always issue a fatal error here. - if (TM->Options.LowerGlobalDtorsViaCxaAtExit) - report_fatal_error("@llvm.global_dtors should have been lowered already"); - return StaticDtorSection; -} - void TargetLoweringObjectFileMachO::emitModuleMetadata(MCStreamer &Streamer, Module &M) const { // Emit the linker options if present. @@ -2184,7 +2175,8 @@ MCSection *TargetLoweringObjectFileWasm::getStaticCtorSection( MCSection *TargetLoweringObjectFileWasm::getStaticDtorSection( unsigned Priority, const MCSymbol *KeySym) const { - report_fatal_error("@llvm.global_dtors should have been lowered already"); + llvm_unreachable("@llvm.global_dtors should have been lowered already"); + return nullptr; } //===----------------------------------------------------------------------===// |