Stop propagating method names that violate the coding standard
[oota-llvm.git] / lib / Linker / LinkModules.cpp
index fbf09781baed31825e3ee855c12ae0dce76a2c40..a07caf3b6965ee469f604697d9d2c03197b9ea0f 100644 (file)
@@ -946,9 +946,9 @@ bool llvm::LinkModules(Module *Dest, const Module *Src, std::string *ErrorMsg) {
   // If the source library's module id is in the dependent library list of the
   // destination library, remove it since that module is now linked in.
   sys::Path modId;
-  modId.set_file(Src->getModuleIdentifier());
-  if (!modId.is_empty())
-    Dest->removeLibrary(modId.get_basename());
+  modId.setFile(Src->getModuleIdentifier());
+  if (!modId.isEmpty())
+    Dest->removeLibrary(modId.getBasename());
 
   return false;
 }