diff options
| author | Craig Topper <craig.topper@gmail.com> | 2014-06-08 22:29:17 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2014-06-08 22:29:17 +0000 |
| commit | 66f09ad0417c0e9f0c959023c1cdfcf2d881ad2e (patch) | |
| tree | b9db3c4a6ee223002b945659169ab39cdd9fd80d /llvm/utils | |
| parent | 41181d140c99913f8c8d73791dd4babfcba8a73d (diff) | |
| download | bcm5719-llvm-66f09ad0417c0e9f0c959023c1cdfcf2d881ad2e.tar.gz bcm5719-llvm-66f09ad0417c0e9f0c959023c1cdfcf2d881ad2e.zip | |
[C++11] Use 'nullptr'.
llvm-svn: 210442
Diffstat (limited to 'llvm/utils')
| -rw-r--r-- | llvm/utils/FileCheck/FileCheck.cpp | 2 | ||||
| -rw-r--r-- | llvm/utils/PerfectShuffle/PerfectShuffle.cpp | 4 | ||||
| -rw-r--r-- | llvm/utils/not/not.cpp | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp index a1243774fee..74c708236d6 100644 --- a/llvm/utils/FileCheck/FileCheck.cpp +++ b/llvm/utils/FileCheck/FileCheck.cpp @@ -1043,7 +1043,7 @@ bool CheckString::CheckNext(const SourceMgr &SM, StringRef Buffer) const { SMLoc::getFromPointer(Buffer.data())))->getBufferStart() && "CHECK-NEXT can't be the first check in a file"); - const char *FirstNewLine = 0; + const char *FirstNewLine = nullptr; unsigned NumNewLines = CountNumNewlinesBetween(Buffer, FirstNewLine); if (NumNewLines == 0) { diff --git a/llvm/utils/PerfectShuffle/PerfectShuffle.cpp b/llvm/utils/PerfectShuffle/PerfectShuffle.cpp index d39414eede9..f80d8856316 100644 --- a/llvm/utils/PerfectShuffle/PerfectShuffle.cpp +++ b/llvm/utils/PerfectShuffle/PerfectShuffle.cpp @@ -219,10 +219,10 @@ static void EvaluateOps(unsigned short Elt, unsigned short Vals[], int main() { // Seed the table with accesses to the LHS and RHS. ShufTab[0x0123].Cost = 0; - ShufTab[0x0123].Op = 0; + ShufTab[0x0123].Op = nullptr; ShufTab[0x0123].Arg0 = 0x0123; ShufTab[0x4567].Cost = 0; - ShufTab[0x4567].Op = 0; + ShufTab[0x4567].Op = nullptr; ShufTab[0x4567].Arg0 = 0x4567; // Seed the first-level of shuffles, shuffles whose inputs are the input to diff --git a/llvm/utils/not/not.cpp b/llvm/utils/not/not.cpp index ebd16189c9b..546f989d7fa 100644 --- a/llvm/utils/not/not.cpp +++ b/llvm/utils/not/not.cpp @@ -30,7 +30,8 @@ int main(int argc, const char **argv) { std::string Program = sys::FindProgramByName(argv[0]); std::string ErrMsg; - int Result = sys::ExecuteAndWait(Program, argv, 0, 0, 0, 0, &ErrMsg); + int Result = sys::ExecuteAndWait(Program, argv, nullptr, nullptr, 0, 0, + &ErrMsg); if (Result < 0) { errs() << "Error: " << ErrMsg << "\n"; if (ExpectCrash) |

