summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-link/llvm-link.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-13 16:10:26 +0000
committerChris Lattner <sabre@nondot.org>2003-06-13 16:10:26 +0000
commit3aa325766a2124528993999b6c2583c9cedbfc99 (patch)
tree28b95d8674282f67b450c3321c99f02b9e12b949 /llvm/tools/llvm-link/llvm-link.cpp
parent72989a5758564d456d17d9d2224addc5a147c45f (diff)
downloadbcm5719-llvm-3aa325766a2124528993999b6c2583c9cedbfc99.tar.gz
bcm5719-llvm-3aa325766a2124528993999b6c2583c9cedbfc99.zip
Fix major bug in my last checkin. :(
llvm-svn: 6688
Diffstat (limited to 'llvm/tools/llvm-link/llvm-link.cpp')
-rw-r--r--llvm/tools/llvm-link/llvm-link.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/llvm-link/llvm-link.cpp b/llvm/tools/llvm-link/llvm-link.cpp
index 99181f3344a..58959cfa416 100644
--- a/llvm/tools/llvm-link/llvm-link.cpp
+++ b/llvm/tools/llvm-link/llvm-link.cpp
@@ -106,6 +106,7 @@ 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
OpenPOWER on IntegriCloud