mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-23 04:16:42 +00:00
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
This commit is contained in:
parent
58ac29f94d
commit
475a978a96
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user