diff options
| author | Ed Maste <emaste@freebsd.org> | 2014-04-20 13:17:36 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@freebsd.org> | 2014-04-20 13:17:36 +0000 |
| commit | d4612ad0f3e443c2a0fb8cf57cdb4a03ba546a96 (patch) | |
| tree | a1bfee39ae65a095b95a0b2ccb70e80418fa173a /lldb/source/Symbol/SymbolVendor.cpp | |
| parent | 3a3ee3e3762a4fe0dbc084a6a3790377cee641e1 (diff) | |
| download | bcm5719-llvm-d4612ad0f3e443c2a0fb8cf57cdb4a03ba546a96.tar.gz bcm5719-llvm-d4612ad0f3e443c2a0fb8cf57cdb4a03ba546a96.zip | |
Switch NULL to C++11 nullptr in source/Symbol and source/Utility
Patch by Robert Matusewicz
llvm-svn: 206713
Diffstat (limited to 'lldb/source/Symbol/SymbolVendor.cpp')
| -rw-r--r-- | lldb/source/Symbol/SymbolVendor.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Symbol/SymbolVendor.cpp b/lldb/source/Symbol/SymbolVendor.cpp index bfa560044ab..91cb94cdc06 100644 --- a/lldb/source/Symbol/SymbolVendor.cpp +++ b/lldb/source/Symbol/SymbolVendor.cpp @@ -37,7 +37,7 @@ SymbolVendor::FindPlugin (const lldb::ModuleSP &module_sp, lldb_private::Stream std::unique_ptr<SymbolVendor> instance_ap; SymbolVendorCreateInstance create_callback; - for (size_t idx = 0; (create_callback = PluginManager::GetSymbolVendorCreateCallbackAtIndex(idx)) != NULL; ++idx) + for (size_t idx = 0; (create_callback = PluginManager::GetSymbolVendorCreateCallbackAtIndex(idx)) != nullptr; ++idx) { instance_ap.reset(create_callback(module_sp, feedback_strm)); @@ -109,7 +109,7 @@ SymbolVendor::SetCompileUnitAtIndex (size_t idx, const CompUnitSP &cu_sp) // unit once, so if this assertion fails, we need to make sure that // we don't have a race condition, or have a second parse of the same // compile unit. - assert(m_compile_units[idx].get() == NULL); + assert(m_compile_units[idx].get() == nullptr); m_compile_units[idx] = cu_sp; return true; } @@ -247,7 +247,7 @@ SymbolVendor::ResolveTypeUID(lldb::user_id_t type_uid) if (m_sym_file_ap.get()) return m_sym_file_ap->ResolveTypeUID(type_uid); } - return NULL; + return nullptr; } @@ -427,7 +427,7 @@ SymbolVendor::GetCompileUnitAtIndex(size_t idx) if (idx < num_compile_units) { cu_sp = m_compile_units[idx]; - if (cu_sp.get() == NULL) + if (cu_sp.get() == nullptr) { m_compile_units[idx] = m_sym_file_ap->ParseCompileUnitAtIndex(idx); cu_sp = m_compile_units[idx]; @@ -450,7 +450,7 @@ SymbolVendor::GetSymtab () return objfile->GetSymtab (); } } - return NULL; + return nullptr; } void |

