summaryrefslogtreecommitdiff
path: root/tools/llc
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-04-25 04:24:47 +0000
committerCraig Topper <craig.topper@gmail.com>2014-04-25 04:24:47 +0000
commit573faecacf5277b338f27c541c93c364ff284304 (patch)
treee240fe811c81316de881fab14446e6faeab052e4 /tools/llc
parentac16f0e024c5517c01692b6f7bb5a85616575f4f (diff)
[C++] Use 'nullptr'. Tools edition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207176 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llc')
-rw-r--r--tools/llc/llc.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index 0c8d14d11db..6dc5a32263b 100644
--- a/tools/llc/llc.cpp
+++ b/tools/llc/llc.cpp
@@ -157,7 +157,7 @@ static tool_output_file *GetOutputStream(const char *TargetName,
if (!error.empty()) {
errs() << error << '\n';
delete FDOut;
- return 0;
+ return nullptr;
}
return FDOut;
@@ -207,7 +207,7 @@ static int compileModule(char **argv, LLVMContext &Context) {
// Load the module to be compiled...
SMDiagnostic Err;
std::unique_ptr<Module> M;
- Module *mod = 0;
+ Module *mod = nullptr;
Triple TheTriple;
bool SkipModule = MCPU == "help" ||
@@ -223,7 +223,7 @@ static int compileModule(char **argv, LLVMContext &Context) {
if (!SkipModule) {
M.reset(ParseIRFile(InputFilename, Err, Context));
mod = M.get();
- if (mod == 0) {
+ if (mod == nullptr) {
Err.print(argv[0], errs());
return 1;
}
@@ -321,8 +321,8 @@ static int compileModule(char **argv, LLVMContext &Context) {
{
formatted_raw_ostream FOS(Out->os());
- AnalysisID StartAfterID = 0;
- AnalysisID StopAfterID = 0;
+ AnalysisID StartAfterID = nullptr;
+ AnalysisID StopAfterID = nullptr;
const PassRegistry *PR = PassRegistry::getPassRegistry();
if (!StartAfter.empty()) {
const PassInfo *PI = PR->getPassInfo(StartAfter);