@@ -535,18 +535,6 @@ cl::opt<bool> noPLT(
535
535
" fno-plt" , cl::ZeroOrMore,
536
536
cl::desc (" Do not use the PLT to make function calls" ));
537
537
538
- static cl::opt<signed char > passmanager (" passmanager" ,
539
- cl::desc (" Setting the passmanager (new,legacy):" ), cl::ZeroOrMore,
540
- #if LDC_LLVM_VER < 1500
541
- cl::init (0 ),
542
- #else
543
- cl::init (1 ),
544
- #endif
545
- cl::values (
546
- clEnumValN (0 , " legacy" , " Use the legacy passmanager (available for LLVM14 and below) " ),
547
- clEnumValN(1 , " new" , " Use the new passmanager (available for LLVM14 and above)" )));
548
- bool isUsingLegacyPassManager () { return passmanager == 0 ; }
549
-
550
538
// Math options
551
539
bool fFastMath ; // Storage for the dynamically created ffast-math option.
552
540
llvm::FastMathFlags defaultFMF;
@@ -690,14 +678,10 @@ cl::opt<std::string>
690
678
" of optimizations performed by LLVM" ),
691
679
cl::ValueOptional);
692
680
693
- #if LDC_LLVM_VER >= 1300
694
- // LLVM < 13 has "--warn-stack-size", but let's not do the effort of forwarding
695
- // the string to that option, and instead let the user do it himself.
696
681
cl::opt<unsigned >
697
682
fWarnStackSize (" fwarn-stack-size" , cl::ZeroOrMore, cl::init(UINT_MAX),
698
683
cl::desc(" Warn for stack size bigger than the given number" ),
699
684
cl::value_desc(" threshold" ));
700
- #endif
701
685
702
686
#if LDC_LLVM_SUPPORTED_TARGET_SPIRV || LDC_LLVM_SUPPORTED_TARGET_NVPTX
703
687
cl::list<std::string>
@@ -726,12 +710,6 @@ cl::opt<bool> dynamicCompileTlsWorkaround(
726
710
cl::Hidden);
727
711
#endif
728
712
729
- #if LDC_LLVM_VER >= 1700
730
- bool enableOpaqueIRPointers = true ; // typed pointers are no longer supported from LLVM 17
731
- #elif LDC_LLVM_VER >= 1400
732
- bool enableOpaqueIRPointers = false ;
733
- #endif
734
-
735
713
static cl::extrahelp
736
714
footer (" \n "
737
715
" -d-debug can also be specified without options, in which case it "
@@ -790,12 +768,7 @@ void createClashingOptions() {
790
768
clEnumValN (FloatABI::Hard, " hard" ,
791
769
" Hardware floating-point ABI and instructions" )));
792
770
793
- #if LDC_LLVM_VER >= 1400
794
771
renameAndHide (" opaque-pointers" , nullptr ); // remove
795
- new cl::opt<bool , true >(
796
- " opaque-pointers" , cl::ZeroOrMore, cl::location (enableOpaqueIRPointers),
797
- cl::desc (" Use opaque IR pointers (experimental!)" ), cl::Hidden);
798
- #endif
799
772
}
800
773
801
774
// / Hides command line options exposed from within LLVM that are unlikely
@@ -883,7 +856,7 @@ void hideLLVMOptions() {
883
856
" no-discriminators" , " no-integrated-as" , " no-type-check" , " no-xray-index" ,
884
857
" nozero-initialized-in-bss" , " nvptx-sched4reg" ,
885
858
" objc-arc-annotation-target-identifier" ,
886
- " object-size-offset-visitor-max-visit-instructions" , " opaque-pointers " ,
859
+ " object-size-offset-visitor-max-visit-instructions" ,
887
860
" pgo-block-coverage" , " pgo-temporal-instrumentation" ,
888
861
" pgo-view-block-coverage-graph" ,
889
862
" pie-copy-relocations" , " poison-checking-function-local" ,
0 commit comments