Take object file as input and handle files with the same name correctly.

llvm-svn: 50749
diff --git a/llvm/tools/llvmc2/Action.cpp b/llvm/tools/llvmc2/Action.cpp
index fdbfb88..3d61d37 100644
--- a/llvm/tools/llvmc2/Action.cpp
+++ b/llvm/tools/llvmc2/Action.cpp
@@ -34,6 +34,7 @@
     if (!prog.canExecute())
       throw std::runtime_error("Program '" + name + "' is not executable.");
 
+    // Build the command line vector and redirects.
     const sys::Path* redirects[3] = {0,0,0};
     sys::Path stdout_redirect;
 
@@ -54,6 +55,7 @@
     }
     argv.push_back(0);  // null terminate list.
 
+    // Invoke the program.
     return sys::Program::ExecuteAndWait(prog, &argv[0], 0, &redirects[0]);
   }