[llvm] r251925 - Pass enum instead of bool to new linkInModule call in llvm-link

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 3 07:10:50 PST 2015


Author: tejohnson
Date: Tue Nov  3 09:10:50 2015
New Revision: 251925

URL: http://llvm.org/viewvc/llvm-project?rev=251925&view=rev
Log:
Pass enum instead of bool to new linkInModule call in llvm-link

A new call I added to linkInModule from llvm-link in r251866
was still passing in a boolean for an argument that was changed to an
enum in r246561. I didn't catch this in my merge since the bool false
matched the flag value it mapped to.

Modified:
    llvm/trunk/tools/llvm-link/llvm-link.cpp

Modified: llvm/trunk/tools/llvm-link/llvm-link.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-link/llvm-link.cpp?rev=251925&r1=251924&r2=251925&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-link/llvm-link.cpp (original)
+++ llvm/trunk/tools/llvm-link/llvm-link.cpp Tue Nov  3 09:10:50 2015
@@ -215,7 +215,7 @@ static bool importFunctions(const char *
     }
 
     // Link in the specified function.
-    if (L.linkInModule(M.get(), false, Index.get(), F))
+    if (L.linkInModule(M.get(), Linker::Flags::None, Index.get(), F))
       return false;
   }
   return true;




More information about the llvm-commits mailing list