diff options
author | Zequan Wu <zequanwu@google.com> | 2022-03-23 15:40:52 -0700 |
---|---|---|
committer | Zequan Wu <zequanwu@google.com> | 2022-03-23 16:11:54 -0700 |
commit | 581dc3c729c619fe636325a79279fabb2acdc1ce (patch) | |
tree | 98afe38d3c3770f8c91f13de319cbf5833f360e5 /llvm/lib/CodeGen/CommandFlags.cpp | |
parent | d3ebefb1541b1489d998f6316f136371d92f7c74 (diff) | |
download | llvm-581dc3c729c619fe636325a79279fabb2acdc1ce.zip llvm-581dc3c729c619fe636325a79279fabb2acdc1ce.tar.gz llvm-581dc3c729c619fe636325a79279fabb2acdc1ce.tar.bz2 |
Revert "Lower `@llvm.global_dtors` using `__cxa_atexit` on MachO"
This reverts commit 22570bac694396514fff18dec926558951643fa6.
Diffstat (limited to 'llvm/lib/CodeGen/CommandFlags.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CommandFlags.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/CommandFlags.cpp b/llvm/lib/CodeGen/CommandFlags.cpp index cdf160d..761e79e 100644 --- a/llvm/lib/CodeGen/CommandFlags.cpp +++ b/llvm/lib/CodeGen/CommandFlags.cpp @@ -79,7 +79,6 @@ CGOPT(bool, StackSymbolOrdering) CGOPT(bool, StackRealign) CGOPT(std::string, TrapFuncName) CGOPT(bool, UseCtors) -CGOPT(bool, LowerGlobalDtorsViaCxaAtExit) CGOPT(bool, RelaxELFRelocations) CGOPT_EXP(bool, DataSections) CGOPT_EXP(bool, FunctionSections) @@ -347,12 +346,6 @@ codegen::RegisterCodeGenFlags::RegisterCodeGenFlags() { cl::init(false)); CGBINDOPT(UseCtors); - static cl::opt<bool> LowerGlobalDtorsViaCxaAtExit( - "lower-global-dtors-via-cxa-atexit", - cl::desc("Lower llvm.global_dtors (global destructors) via __cxa_atexit"), - cl::init(true)); - CGBINDOPT(LowerGlobalDtorsViaCxaAtExit); - static cl::opt<bool> RelaxELFRelocations( "relax-elf-relocations", cl::desc( @@ -536,7 +529,6 @@ codegen::InitTargetOptionsFromCodeGenFlags(const Triple &TheTriple) { Options.GuaranteedTailCallOpt = getEnableGuaranteedTailCallOpt(); Options.StackSymbolOrdering = getStackSymbolOrdering(); Options.UseInitArray = !getUseCtors(); - Options.LowerGlobalDtorsViaCxaAtExit = getLowerGlobalDtorsViaCxaAtExit(); Options.RelaxELFRelocations = getRelaxELFRelocations(); Options.DataSections = getExplicitDataSections().getValueOr(TheTriple.hasDefaultDataSections()); |