summaryrefslogtreecommitdiff
path: root/lib/DebugInfo/DWARFDebugFrame.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-04-15 06:32:26 +0000
committerCraig Topper <craig.topper@gmail.com>2014-04-15 06:32:26 +0000
commit0b6cb7104b15504cd41f48cc2babcbcee70775f3 (patch)
tree48f97597536aa35e8e2b80b8e25e049821ca7e13 /lib/DebugInfo/DWARFDebugFrame.cpp
parenteb19b8f58b12532e736051fee46dcf2115a4888d (diff)
downloadllvm-0b6cb7104b15504cd41f48cc2babcbcee70775f3.tar.gz
llvm-0b6cb7104b15504cd41f48cc2babcbcee70775f3.tar.bz2
llvm-0b6cb7104b15504cd41f48cc2babcbcee70775f3.tar.xz
[C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206252 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFDebugFrame.cpp')
-rw-r--r--lib/DebugInfo/DWARFDebugFrame.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/DebugInfo/DWARFDebugFrame.cpp b/lib/DebugInfo/DWARFDebugFrame.cpp
index 5bf7b070b8..425c47cbf0 100644
--- a/lib/DebugInfo/DWARFDebugFrame.cpp
+++ b/lib/DebugInfo/DWARFDebugFrame.cpp
@@ -251,7 +251,7 @@ public:
int64_t LinkedCIEOffset, uint64_t InitialLocation, uint64_t AddressRange)
: FrameEntry(FK_FDE, D, Offset, Length), LinkedCIEOffset(LinkedCIEOffset),
InitialLocation(InitialLocation), AddressRange(AddressRange),
- LinkedCIE(NULL) {}
+ LinkedCIE(nullptr) {}
~FDE() {
}
@@ -334,7 +334,7 @@ void DWARFDebugFrame::parse(DataExtractor Data) {
Id = Data.getUnsigned(&Offset, IsDWARF64 ? 8 : 4);
bool IsCIE = ((IsDWARF64 && Id == DW64_CIE_ID) || Id == DW_CIE_ID);
- FrameEntry *Entry = 0;
+ FrameEntry *Entry = nullptr;
if (IsCIE) {
// Note: this is specifically DWARFv3 CIE header structure. It was
// changed in DWARFv4. We currently don't support reading DWARFv4