mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
[C++] Use 'nullptr'. Tools edition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207176 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -157,7 +157,7 @@ bool llvm::error(error_code EC) {
|
||||
return true;
|
||||
}
|
||||
|
||||
static const Target *getTarget(const ObjectFile *Obj = NULL) {
|
||||
static const Target *getTarget(const ObjectFile *Obj = nullptr) {
|
||||
// Figure out the target triple.
|
||||
llvm::Triple TheTriple("unknown-unknown-unknown");
|
||||
if (TripleName.empty()) {
|
||||
@ -183,7 +183,7 @@ static const Target *getTarget(const ObjectFile *Obj = NULL) {
|
||||
Error);
|
||||
if (!TheTarget) {
|
||||
errs() << ToolName << ": " << Error;
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// Update the triple name and return the found target.
|
||||
|
Reference in New Issue
Block a user