Author: compnerd Date: Sat Nov 18 16:45:33 2017 New Revision: 318609 URL: http://llvm.org/viewvc/llvm-project?rev=318609&view=rev Log: Driver: remove `SupportsObjCGC` (NFC)
This option is not used in the frontend. Remove the method. Modified: cfe/trunk/include/clang/Driver/ToolChain.h cfe/trunk/lib/Driver/ToolChains/BareMetal.h cfe/trunk/lib/Driver/ToolChains/Cuda.h cfe/trunk/lib/Driver/ToolChains/Darwin.cpp cfe/trunk/lib/Driver/ToolChains/Darwin.h cfe/trunk/lib/Driver/ToolChains/WebAssembly.cpp cfe/trunk/lib/Driver/ToolChains/WebAssembly.h Modified: cfe/trunk/include/clang/Driver/ToolChain.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/ToolChain.h?rev=318609&r1=318608&r2=318609&view=diff ============================================================================== --- cfe/trunk/include/clang/Driver/ToolChain.h (original) +++ cfe/trunk/include/clang/Driver/ToolChain.h Sat Nov 18 16:45:33 2017 @@ -366,9 +366,6 @@ public: /// SupportsProfiling - Does this tool chain support -pg. virtual bool SupportsProfiling() const { return true; } - /// Does this tool chain support Objective-C garbage collection. - virtual bool SupportsObjCGC() const { return true; } - /// Complain if this tool chain doesn't support Objective-C ARC. virtual void CheckObjCARC() const {} Modified: cfe/trunk/lib/Driver/ToolChains/BareMetal.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/BareMetal.h?rev=318609&r1=318608&r2=318609&view=diff ============================================================================== --- cfe/trunk/lib/Driver/ToolChains/BareMetal.h (original) +++ cfe/trunk/lib/Driver/ToolChains/BareMetal.h Sat Nov 18 16:45:33 2017 @@ -37,7 +37,6 @@ public: bool isPIEDefault() const override { return false; } bool isPICDefaultForced() const override { return false; } bool SupportsProfiling() const override { return false; } - bool SupportsObjCGC() const override { return false; } RuntimeLibType GetDefaultRuntimeLibType() const override { return ToolChain::RLT_CompilerRT; Modified: cfe/trunk/lib/Driver/ToolChains/Cuda.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/Cuda.h?rev=318609&r1=318608&r2=318609&view=diff ============================================================================== --- cfe/trunk/lib/Driver/ToolChains/Cuda.h (original) +++ cfe/trunk/lib/Driver/ToolChains/Cuda.h Sat Nov 18 16:45:33 2017 @@ -156,7 +156,6 @@ public: bool isPIEDefault() const override { return false; } bool isPICDefaultForced() const override { return false; } bool SupportsProfiling() const override { return false; } - bool SupportsObjCGC() const override { return false; } bool IsMathErrnoDefault() const override { return false; } void AddCudaIncludeArgs(const llvm::opt::ArgList &DriverArgs, Modified: cfe/trunk/lib/Driver/ToolChains/Darwin.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/Darwin.cpp?rev=318609&r1=318608&r2=318609&view=diff ============================================================================== --- cfe/trunk/lib/Driver/ToolChains/Darwin.cpp (original) +++ cfe/trunk/lib/Driver/ToolChains/Darwin.cpp Sat Nov 18 16:45:33 2017 @@ -2041,8 +2041,6 @@ void Darwin::addStartObjectFileArgs(cons } } -bool Darwin::SupportsObjCGC() const { return isTargetMacOS(); } - void Darwin::CheckObjCARC() const { if (isTargetIOSBased() || isTargetWatchOSBased() || (isTargetMacOS() && !isMacosxVersionLT(10, 6))) Modified: cfe/trunk/lib/Driver/ToolChains/Darwin.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/Darwin.h?rev=318609&r1=318608&r2=318609&view=diff ============================================================================== --- cfe/trunk/lib/Driver/ToolChains/Darwin.h (original) +++ cfe/trunk/lib/Driver/ToolChains/Darwin.h Sat Nov 18 16:45:33 2017 @@ -245,8 +245,6 @@ public: bool SupportsProfiling() const override; - bool SupportsObjCGC() const override { return false; } - bool UseDwarfDebugFlags() const override; bool UseSjLjExceptions(const llvm::opt::ArgList &Args) const override { @@ -455,8 +453,6 @@ public: return 0; } - bool SupportsObjCGC() const override; - void CheckObjCARC() const override; bool UseSjLjExceptions(const llvm::opt::ArgList &Args) const override; Modified: cfe/trunk/lib/Driver/ToolChains/WebAssembly.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/WebAssembly.cpp?rev=318609&r1=318608&r2=318609&view=diff ============================================================================== --- cfe/trunk/lib/Driver/ToolChains/WebAssembly.cpp (original) +++ cfe/trunk/lib/Driver/ToolChains/WebAssembly.cpp Sat Nov 18 16:45:33 2017 @@ -98,9 +98,6 @@ bool WebAssembly::isPICDefaultForced() c bool WebAssembly::IsIntegratedAssemblerDefault() const { return true; } -// TODO: Support Objective C stuff. -bool WebAssembly::SupportsObjCGC() const { return false; } - bool WebAssembly::hasBlocksRuntime() const { return false; } // TODO: Support profiling. Modified: cfe/trunk/lib/Driver/ToolChains/WebAssembly.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/WebAssembly.h?rev=318609&r1=318608&r2=318609&view=diff ============================================================================== --- cfe/trunk/lib/Driver/ToolChains/WebAssembly.h (original) +++ cfe/trunk/lib/Driver/ToolChains/WebAssembly.h Sat Nov 18 16:45:33 2017 @@ -49,7 +49,6 @@ private: bool isPICDefaultForced() const override; bool IsIntegratedAssemblerDefault() const override; bool hasBlocksRuntime() const override; - bool SupportsObjCGC() const override; bool SupportsProfiling() const override; bool HasNativeLLVMSupport() const override; void addClangTargetOptions(const llvm::opt::ArgList &DriverArgs, _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits