Use Instruction::eraseFromParent().
[oota-llvm.git] / lib / Linker / LinkItems.cpp
index 95050d0750dd959c725c81fdcbec928d4e41b4d3..7c888aa498a3f1658b3e7f3a964698b4f03145c1 100644 (file)
@@ -2,8 +2,8 @@
 //
 //                     The LLVM Compiler Infrastructure
 //
-// This file was developed by Reid Spencer and is distributed under the
-// University of Illinois Open Source License. See LICENSE.TXT for details.
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
 //
 //===----------------------------------------------------------------------===//
 //
@@ -74,7 +74,7 @@ bool Linker::LinkInLibrary(const std::string& Lib, bool& is_native) {
   // Determine where this library lives.
   sys::Path Pathname = FindLib(Lib);
   if (Pathname.isEmpty())
-    return warning("Cannot find library '" + Lib + "'");
+    return error("Cannot find library '" + Lib + "'");
 
   // If its an archive, try to link it in
   std::string Magic;