[llvm-commits] [llvm] r99413 - /llvm/trunk/tools/llvm-ld/llvm-ld.cpp
Dan Gohman
gohman at apple.com
Wed Mar 24 12:00:02 PDT 2010
Author: djg
Date: Wed Mar 24 14:00:02 2010
New Revision: 99413
URL: http://llvm.org/viewvc/llvm-project?rev=99413&view=rev
Log:
It's not necessary to call raw_ostream::close explicitly on automatic
raw_ostream variables immediately before they go out of scope.
Modified:
llvm/trunk/tools/llvm-ld/llvm-ld.cpp
Modified: llvm/trunk/tools/llvm-ld/llvm-ld.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-ld/llvm-ld.cpp?rev=99413&r1=99412&r2=99413&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-ld/llvm-ld.cpp (original)
+++ llvm/trunk/tools/llvm-ld/llvm-ld.cpp Wed Mar 24 14:00:02 2010
@@ -243,9 +243,6 @@
// Write it out
WriteBitcodeToFile(M, Out);
-
- // Close the bitcode file.
- Out.close();
}
/// GenerateAssembly - generates a native assembly language source file from the
@@ -471,7 +468,6 @@
Out2 << " -load=" << FullLibraryPath.str() << " \\\n";
}
Out2 << " " << BitcodeOutputFilename << " ${1+\"$@\"}\n";
- Out2.close();
}
// BuildLinkItems -- This function generates a LinkItemList for the LinkItems
More information about the llvm-commits
mailing list