diff options
author | Chris Lattner <sabre@nondot.org> | 2003-06-12 18:57:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-06-12 18:57:42 +0000 |
commit | 5eba7071e62103b03272c4c891f5f5b18ea4b47b (patch) | |
tree | 43c47fcc625936370c58f207c0cd3d2125d1b5fc /llvm/tools/llvm-link/llvm-link.cpp | |
parent | 0c951c6e8373aac03b19edfde5b57e9c99abde99 (diff) | |
download | bcm5719-llvm-5eba7071e62103b03272c4c891f5f5b18ea4b47b.tar.gz bcm5719-llvm-5eba7071e62103b03272c4c891f5f5b18ea4b47b.zip |
Remove obsolete comments about llvm-ar
llvm-svn: 6686
Diffstat (limited to 'llvm/tools/llvm-link/llvm-link.cpp')
-rw-r--r-- | llvm/tools/llvm-link/llvm-link.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/tools/llvm-link/llvm-link.cpp b/llvm/tools/llvm-link/llvm-link.cpp index 1196e42642a..99181f3344a 100644 --- a/llvm/tools/llvm-link/llvm-link.cpp +++ b/llvm/tools/llvm-link/llvm-link.cpp @@ -4,9 +4,6 @@ // This utility may be invoked in the following manner: // link a.bc b.bc c.bc -o x.bc // -// Alternatively, this can be used as an 'ar' tool as well. If invoked as -// either 'ar' or 'llvm-ar', it accepts a 'rc' parameter as well. -// //===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/Linker.h" @@ -90,13 +87,6 @@ int main(int argc, char **argv) { unsigned BaseArg = 0; std::string ErrorMessage; - // TODO: TEST argv[0] for llvm-ar forms... for now, this is a huge hack. - if (InputFilenames.size() >= 3 && InputFilenames[0] == "rc" && - OutputFilename == "-") { - BaseArg = 2; - OutputFilename = InputFilenames[1]; - } - std::auto_ptr<Module> Composite(LoadFile(InputFilenames[BaseArg])); if (Composite.get() == 0) return 1; @@ -116,7 +106,6 @@ int main(int argc, char **argv) { if (DumpAsm) std::cerr << "Here's the assembly:\n" << Composite.get(); std::ostream *Out = &std::cout; // Default to printing to stdout... - if (OutputFilename != "-") { if (!Force && std::ifstream(OutputFilename.c_str())) { // If force is not specified, make sure not to overwrite a file! std::cerr << argv[0] << ": error opening '" << OutputFilename |