]> granicus.if.org Git - clang/commitdiff
Driver: remove `SupportsObjCGC` (NFC)
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 19 Nov 2017 00:45:33 +0000 (00:45 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 19 Nov 2017 00:45:33 +0000 (00:45 +0000)
This option is not used in the frontend.  Remove the method.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@318609 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/ToolChain.h
lib/Driver/ToolChains/BareMetal.h
lib/Driver/ToolChains/Cuda.h
lib/Driver/ToolChains/Darwin.cpp
lib/Driver/ToolChains/Darwin.h
lib/Driver/ToolChains/WebAssembly.cpp
lib/Driver/ToolChains/WebAssembly.h

index 51ff2b2827699570374a07427c1c565f3553364b..943ec4a5c9803efdc938c525b4006e1fb1472fc9 100644 (file)
@@ -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 {}
 
index 5e9fd9bffdb9e4eaa8b1de29fc851369032738cb..0bed63332cad0f888835fa02e38c433e6f10fa8d 100644 (file)
@@ -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;
index 3101cb3ab7cfce8fa1cae401ec417a00c2fe7a21..23cca03eb2035b7dc2f4992c12e2481f3d361b1c 100644 (file)
@@ -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,
index 39c4525f84d45aaa7a6674543bfa85695b130b5a..5dc8a91bcf137432effb67fa5d48d970a66f42ff 100644 (file)
@@ -2041,8 +2041,6 @@ void Darwin::addStartObjectFileArgs(const ArgList &Args,
   }
 }
 
-bool Darwin::SupportsObjCGC() const { return isTargetMacOS(); }
-
 void Darwin::CheckObjCARC() const {
   if (isTargetIOSBased() || isTargetWatchOSBased() ||
       (isTargetMacOS() && !isMacosxVersionLT(10, 6)))
index bcc76111a4e17d9d535471266eecd99e52410e6a..2b8477aa2756ebc9c034a84083ebab45592d9758 100644 (file)
@@ -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;
index b57989ce45f4f6c4373144fc35fa5bd2d9fc080e..1464c150c9c2adbe8361c5d3b38d7accb5543e91 100644 (file)
@@ -98,9 +98,6 @@ bool WebAssembly::isPICDefaultForced() const { return false; }
 
 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.
index 2999db477f79935283f96791aed3d3e6c46f6a38..7524361d516fe4864b5376fe10e9ffbbfe9b49e1 100644 (file)
@@ -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,