diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-04-16 04:21:27 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-04-16 04:21:27 +0000 |
commit | ada08576794e09149986dea19c9567abb56c3c02 (patch) | |
tree | 3de49031d588fcc718488b21e8ab9093e62656fc /llvm/lib/AsmParser | |
parent | a2bf05aa2fede796f52a40cd6b9115165800db24 (diff) | |
download | bcm5719-llvm-ada08576794e09149986dea19c9567abb56c3c02.tar.gz bcm5719-llvm-ada08576794e09149986dea19c9567abb56c3c02.zip |
[C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr.
llvm-svn: 206356
Diffstat (limited to 'llvm/lib/AsmParser')
-rw-r--r-- | llvm/lib/AsmParser/LLParser.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/AsmParser/LLParser.h b/llvm/lib/AsmParser/LLParser.h index 294a1e14360..f5c8a5a26d1 100644 --- a/llvm/lib/AsmParser/LLParser.h +++ b/llvm/lib/AsmParser/LLParser.h @@ -176,7 +176,8 @@ namespace llvm { return FMF; } - bool ParseOptionalToken(lltok::Kind T, bool &Present, LocTy *Loc = 0) { + bool ParseOptionalToken(lltok::Kind T, bool &Present, + LocTy *Loc = nullptr) { if (Lex.getKind() != T) { Present = false; } else { @@ -348,7 +349,7 @@ namespace llvm { PerFunctionState &PFS); // Constant Parsing. - bool ParseValID(ValID &ID, PerFunctionState *PFS = NULL); + bool ParseValID(ValID &ID, PerFunctionState *PFS = nullptr); bool ParseGlobalValue(Type *Ty, Constant *&V); bool ParseGlobalTypeAndValue(Constant *&V); bool ParseGlobalValueVector(SmallVectorImpl<Constant*> &Elts); |