summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-ld/llvm-ld.cpp
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
commit4634b7d4f6cb8557da5f08bf41b68be4b6bdab02 (patch)
tree4b319e5787964b58e65f7bf4740fdb790381f94a /llvm/tools/llvm-ld/llvm-ld.cpp
parentd7a6cc5129cd5942ee2ddf2cdac3542b11125e4a (diff)
downloadbcm5719-llvm-4634b7d4f6cb8557da5f08bf41b68be4b6bdab02.tar.gz
bcm5719-llvm-4634b7d4f6cb8557da5f08bf41b68be4b6bdab02.zip
It's not necessary to call raw_ostream::close explicitly on automatic
raw_ostream variables immediately before they go out of scope. llvm-svn: 99413
Diffstat (limited to 'llvm/tools/llvm-ld/llvm-ld.cpp')
-rw-r--r--llvm/tools/llvm-ld/llvm-ld.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/tools/llvm-ld/llvm-ld.cpp b/llvm/tools/llvm-ld/llvm-ld.cpp
index 6c3953aad51..c9cc17387e4 100644
--- a/llvm/tools/llvm-ld/llvm-ld.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud