]> granicus.if.org Git - clang/commitdiff
Remove a bit of dead code.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 29 Oct 2012 23:41:43 +0000 (23:41 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 29 Oct 2012 23:41:43 +0000 (23:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166983 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/Types.h
lib/Driver/Driver.cpp
lib/Driver/Types.cpp

index 3dea471cca42ee60bf616d5c3c26ad0071a479ed..d28ca888d302fb05c2b6c9885af529eefccd7311 100644 (file)
@@ -59,10 +59,6 @@ namespace types {
   /// isAcceptedByClang - Can clang handle this input type.
   bool isAcceptedByClang(ID Id);
 
-  /// isOnlyAcceptedByClang - Is clang the only compiler that can handle this
-  /// input type.
-  bool isOnlyAcceptedByClang(ID Id);
-
   /// isCXX - Is this a "C++" input (C++ and Obj-C++ sources and headers).
   bool isCXX(ID Id);
 
index 43e9e5d69f92e29dcdf1a40e0d2bc4680406dd14..29202b5411b958877be1f6c8bf28766d6d3ba77f 100644 (file)
@@ -1803,12 +1803,6 @@ bool Driver::ShouldUseClangCompiler(const Compilation &C, const JobAction &JA,
     return false;
   }
 
-  // Always use clang for precompiling, AST generation, and rewriting,
-  // regardless of archs.
-  if (isa<PrecompileJobAction>(JA) ||
-      types::isOnlyAcceptedByClang(JA.getType()))
-    return true;
-
   return true;
 }
 
index 9d8fcfd6bb44a98a57fd2988f0aa3ff699a40ae6..862025ed9a1a523c213df9c4c9a52f0b77fb9775 100644 (file)
@@ -94,20 +94,6 @@ bool types::isAcceptedByClang(ID Id) {
   }
 }
 
-bool types::isOnlyAcceptedByClang(ID Id) {
-  switch (Id) {
-  default:
-    return false;
-
-  case TY_AST:
-  case TY_LLVM_IR:
-  case TY_LLVM_BC:
-  case TY_RewrittenObjC:
-  case TY_RewrittenLegacyObjC:
-    return true;
-  }
-}
-
 bool types::isObjC(ID Id) {
   switch (Id) {
   default: