]> granicus.if.org Git - clang/commitdiff
Rename ContainsCompileAction to ContainsCompileOrAssembleAction to
authorJoerg Sonnenberger <joerg@bec.de>
Fri, 6 May 2011 14:05:11 +0000 (14:05 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Fri, 6 May 2011 14:05:11 +0000 (14:05 +0000)
properly reflect its behavior.

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

lib/Driver/Driver.cpp

index fc4d86c861c89a2450fb8363906cdfde6d5b0959..fe650547f19aadd9455aa7a39ac8e8ff41277eff 100644 (file)
@@ -569,14 +569,14 @@ void Driver::PrintActions(const Compilation &C) const {
     PrintActions1(C, *it, Ids);
 }
 
-/// \brief Check whether the given input tree contains any compilation (or
-/// assembly) actions.
-static bool ContainsCompileAction(const Action *A) {
+/// \brief Check whether the given input tree contains any compilation or
+/// assembly actions.
+static bool ContainsCompileOrAssembleAction(const Action *A) {
   if (isa<CompileJobAction>(A) || isa<AssembleJobAction>(A))
     return true;
 
   for (Action::const_iterator it = A->begin(), ie = A->end(); it != ie; ++it)
-    if (ContainsCompileAction(*it))
+    if (ContainsCompileOrAssembleAction(*it))
       return true;
 
   return false;
@@ -667,7 +667,7 @@ void Driver::BuildUniversalActions(const ToolChain &TC,
       Arg *A = Args.getLastArg(options::OPT_g_Group);
       if (A && !A->getOption().matches(options::OPT_g0) &&
           !A->getOption().matches(options::OPT_gstabs) &&
-          ContainsCompileAction(Actions.back())) {
+          ContainsCompileOrAssembleAction(Actions.back())) {
         ActionList Inputs;
         Inputs.push_back(Actions.back());
         Actions.pop_back();