summaryrefslogtreecommitdiff
path: root/tools/llvm-ld
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-03-24 19:00:02 +0000
committerDan Gohman <gohman@apple.com>2010-03-24 19:00:02 +0000
commit34b96f4fb369ab3b4cabcfb3d3b4bbb9e201aaf4 (patch)
tree9b49077bfbfb07e43eb5466c2c80f5f5222d4ae0 /tools/llvm-ld
parent8fe7979c416cc5aad167329a2d7e7f5000f445fe (diff)
downloadllvm-34b96f4fb369ab3b4cabcfb3d3b4bbb9e201aaf4.tar.gz
llvm-34b96f4fb369ab3b4cabcfb3d3b4bbb9e201aaf4.tar.bz2
llvm-34b96f4fb369ab3b4cabcfb3d3b4bbb9e201aaf4.tar.xz
It's not necessary to call raw_ostream::close explicitly on automatic
raw_ostream variables immediately before they go out of scope. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99413 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ld')
-rw-r--r--tools/llvm-ld/llvm-ld.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/llvm-ld/llvm-ld.cpp b/tools/llvm-ld/llvm-ld.cpp
index 6c3953aad5..c9cc17387e 100644
--- a/tools/llvm-ld/llvm-ld.cpp
+++ b/tools/llvm-ld/llvm-ld.cpp
@@ -243,9 +243,6 @@ void GenerateBitcode(Module* M, const std::string& FileName) {
// 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 @@ static void EmitShellScript(char **argv, Module *M) {
Out2 << " -load=" << FullLibraryPath.str() << " \\\n";
}
Out2 << " " << BitcodeOutputFilename << " ${1+\"$@\"}\n";
- Out2.close();
}
// BuildLinkItems -- This function generates a LinkItemList for the LinkItems