diff options
author | emaste <emaste@FreeBSD.org> | 2014-11-26 16:48:12 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2014-11-26 16:48:12 +0000 |
commit | 0147dda7de9580d13778ecb4c9e92b83b7a63911 (patch) | |
tree | b16dc95f693ed59342b6141cd3fd9f59a6cd7e7e /contrib/llvm/tools/lldb/source/Symbol/CompileUnit.cpp | |
parent | bfd4c39c61ae9b29542625bb12b6f7f4b1f8c727 (diff) | |
parent | 01ee1789d6aa7294e5966a97f8d29387f6f81699 (diff) | |
download | FreeBSD-src-0147dda7de9580d13778ecb4c9e92b83b7a63911.zip FreeBSD-src-0147dda7de9580d13778ecb4c9e92b83b7a63911.tar.gz |
Update LLDB snapshot to upstream r216948 (git 50f7fe44)
This is approximately "LLDB 3.5" although with a little bit of skew,
and will go along with the Clang 3.5 import.
Sponsored by: DARPA, AFRL
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Symbol/CompileUnit.cpp')
-rw-r--r-- | contrib/llvm/tools/lldb/source/Symbol/CompileUnit.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/contrib/llvm/tools/lldb/source/Symbol/CompileUnit.cpp b/contrib/llvm/tools/lldb/source/Symbol/CompileUnit.cpp index 62ae1cc..f99ca53 100644 --- a/contrib/llvm/tools/lldb/source/Symbol/CompileUnit.cpp +++ b/contrib/llvm/tools/lldb/source/Symbol/CompileUnit.cpp @@ -99,11 +99,11 @@ CompileUnit::GetDescription(Stream *s, lldb::DescriptionLevel level) const void CompileUnit::Dump(Stream *s, bool show_context) const { - s->Printf("%p: ", this); + s->Printf("%p: ", static_cast<const void*>(this)); s->Indent(); - *s << "CompileUnit" << (const UserID&)*this - << ", language = \"" << (const Language&)*this - << "\", file = '" << (const FileSpec&)*this << "'\n"; + *s << "CompileUnit" << static_cast<const UserID&>(*this) + << ", language = \"" << reinterpret_cast<const Language&>(*this) + << "\", file = '" << static_cast<const FileSpec&>(*this) << "'\n"; // m_types.Dump(s); @@ -237,7 +237,7 @@ CompileUnit::GetLanguage() LineTable* CompileUnit::GetLineTable() { - if (m_line_table_ap.get() == NULL) + if (m_line_table_ap.get() == nullptr) { if (m_flags.IsClear(flagsParsedLineTable)) { @@ -257,7 +257,7 @@ CompileUnit::GetLineTable() void CompileUnit::SetLineTable(LineTable* line_table) { - if (line_table == NULL) + if (line_table == nullptr) m_flags.Clear(flagsParsedLineTable); else m_flags.Set(flagsParsedLineTable); @@ -267,7 +267,7 @@ CompileUnit::SetLineTable(LineTable* line_table) VariableListSP CompileUnit::GetVariableList(bool can_create) { - if (m_variables.get() == NULL && can_create) + if (m_variables.get() == nullptr && can_create) { SymbolContext sc; CalculateSymbolContext(&sc); @@ -353,7 +353,7 @@ CompileUnit::ResolveSymbolContext { LineTable *line_table = sc.comp_unit->GetLineTable(); - if (line_table != NULL) + if (line_table != nullptr) { uint32_t found_line; uint32_t line_idx; |