@@ -186,39 +186,6 @@ file_types::ID ToolChain::lookupTypeForExtension(StringRef Ext) const {
186186 return file_types::lookupTypeForExtension (Ext);
187187}
188188
189- static bool jobsHaveSameExecutableNames (const Job *A, const Job *B) {
190- // Jobs that get here (that are derived from CompileJobActions) should always
191- // have the same executable name -- it should always be SWIFT_EXECUTABLE_NAME
192- // -- but we check here just to be sure / fail gracefully in non-assert
193- // builds.
194- assert (strcmp (A->getExecutable (), B->getExecutable ()) == 0 );
195- if (strcmp (A->getExecutable (), B->getExecutable ()) != 0 ) {
196- return false ;
197- }
198- return true ;
199- }
200-
201- static bool jobsHaveSameOutputTypes (const Job *A, const Job *B) {
202- if (A->getOutput ().getPrimaryOutputType () !=
203- B->getOutput ().getPrimaryOutputType ())
204- return false ;
205- return A->getOutput ().hasSameAdditionalOutputTypes (B->getOutput ());
206- }
207-
208- static bool jobsHaveSameEnvironment (const Job *A, const Job *B) {
209- auto AEnv = A->getExtraEnvironment ();
210- auto BEnv = B->getExtraEnvironment ();
211- if (AEnv.size () != BEnv.size ())
212- return false ;
213- for (size_t i = 0 ; i < AEnv.size (); ++i) {
214- if (strcmp (AEnv[i].first , BEnv[i].first ) != 0 )
215- return false ;
216- if (strcmp (AEnv[i].second , BEnv[i].second ) != 0 )
217- return false ;
218- }
219- return true ;
220- }
221-
222189void ToolChain::addLinkedLibArgs (const llvm::opt::ArgList &Args,
223190 llvm::opt::ArgStringList &FrontendArgs) {
224191 Args.getLastArg (options::OPT_l);
0 commit comments