summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-06-03 17:23:34 +0000
committerAlp Toker <alp@nuanti.com>2014-06-03 17:23:34 +0000
commitea04672c82db08338fbe65f53afacca069dcf8b7 (patch)
tree9e69e0d6b7b2c888f58db1be9f9b36b7abb63799 /clang/lib/Frontend
parenta17a4326d01be3ab80e6e73c168a8eb70100800c (diff)
downloadbcm5719-llvm-ea04672c82db08338fbe65f53afacca069dcf8b7.tar.gz
bcm5719-llvm-ea04672c82db08338fbe65f53afacca069dcf8b7.zip
Fix leak from r210059
Also revert r210096 which temporarily disabled the test while this was being investigated. llvm-svn: 210115
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index c65d34bd2a9..ac20d7a28e5 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -478,6 +478,12 @@ CompilerInstance::createDefaultOutputFile(bool Binary,
/*UseTemporary=*/true);
}
+llvm::raw_null_ostream *CompilerInstance::createNullOutputFile() {
+ llvm::raw_null_ostream *OS = new llvm::raw_null_ostream();
+ addOutputFile(OutputFile("", "", OS));
+ return OS;
+}
+
llvm::raw_fd_ostream *
CompilerInstance::createOutputFile(StringRef OutputPath,
bool Binary, bool RemoveFileOnSignal,
OpenPOWER on IntegriCloud