diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-05-22 04:46:25 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-05-22 04:46:25 +0000 |
commit | 49a2790fb329c5cf27d9735b97ef70a6760921e4 (patch) | |
tree | a27dc484a06e2a4559f88a7939e40fd4ad01b80f /clang/lib/Frontend/FrontendActions.cpp | |
parent | c3a73c30877fdc754e499a529fc97325dc28332a (diff) | |
download | llvm-49a2790fb329c5cf27d9735b97ef70a6760921e4.zip llvm-49a2790fb329c5cf27d9735b97ef70a6760921e4.tar.gz llvm-49a2790fb329c5cf27d9735b97ef70a6760921e4.tar.bz2 |
[C++11] Use 'nullptr'. Frontend edition.
llvm-svn: 209389
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
-rw-r--r-- | clang/lib/Frontend/FrontendActions.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp index 4cafa23..5c56ee3 100644 --- a/clang/lib/Frontend/FrontendActions.cpp +++ b/clang/lib/Frontend/FrontendActions.cpp @@ -49,7 +49,7 @@ ASTConsumer *ASTPrintAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { if (raw_ostream *OS = CI.createDefaultOutputFile(false, InFile)) return CreateASTPrinter(OS, CI.getFrontendOpts().ASTDumpFilter); - return 0; + return nullptr; } ASTConsumer *ASTDumpAction::CreateASTConsumer(CompilerInstance &CI, @@ -77,13 +77,14 @@ ASTConsumer *GeneratePCHAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { std::string Sysroot; std::string OutputFile; - raw_ostream *OS = 0; + raw_ostream *OS = nullptr; if (ComputeASTConsumerArguments(CI, InFile, Sysroot, OutputFile, OS)) - return 0; + return nullptr; if (!CI.getFrontendOpts().RelocatablePCH) Sysroot.clear(); - return new PCHGenerator(CI.getPreprocessor(), OutputFile, 0, Sysroot, OS); + return new PCHGenerator(CI.getPreprocessor(), OutputFile, nullptr, Sysroot, + OS); } bool GeneratePCHAction::ComputeASTConsumerArguments(CompilerInstance &CI, @@ -114,10 +115,10 @@ ASTConsumer *GenerateModuleAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { std::string Sysroot; std::string OutputFile; - raw_ostream *OS = 0; + raw_ostream *OS = nullptr; if (ComputeASTConsumerArguments(CI, InFile, Sysroot, OutputFile, OS)) - return 0; - + return nullptr; + return new PCHGenerator(CI.getPreprocessor(), OutputFile, Module, Sysroot, OS); } |