summaryrefslogtreecommitdiffstats
path: root/lldb/source/lldb-log.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-10-27 03:32:59 +0000
committerGreg Clayton <gclayton@apple.com>2010-10-27 03:32:59 +0000
commit73b472d42a4c2d1dafa165694456a06b05cb408a (patch)
tree08048a8c2adc8eba74148f0ea5966e19f2fdaebc /lldb/source/lldb-log.cpp
parentd95ccd58a9fd96880c94ca995b334501738df5e8 (diff)
downloadbcm5719-llvm-73b472d42a4c2d1dafa165694456a06b05cb408a.tar.gz
bcm5719-llvm-73b472d42a4c2d1dafa165694456a06b05cb408a.zip
Updated the lldb_private::Flags class to have better method names and made
all of the calls inlined in the header file for better performance. Fixed the summary for C string types (array of chars (with any combo if modifiers), and pointers to chars) work in all cases. Fixed an issue where a forward declaration to a clang type could cause itself to resolve itself more than once if, during the resolving of the type itself it caused something to try and resolve itself again. We now remove the clang type from the forward declaration map in the DWARF parser when we start to resolve it and avoid this additional call. This should stop any duplicate members from appearing and throwing all the alignment of structs, unions and classes. llvm-svn: 117437
Diffstat (limited to 'lldb/source/lldb-log.cpp')
-rw-r--r--lldb/source/lldb-log.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/lldb-log.cpp b/lldb/source/lldb-log.cpp
index 1428383ead3..4d4f9f5851b 100644
--- a/lldb/source/lldb-log.cpp
+++ b/lldb/source/lldb-log.cpp
@@ -47,7 +47,7 @@ lldb_private::GetLogMask ()
{
Log *log = LogAccessor (true, NULL);
if (log)
- return log->GetMask().GetAllFlagBits();
+ return log->GetMask().Get();
return 0;
}
@@ -64,7 +64,7 @@ lldb_private::GetLogIfAllCategoriesSet (uint32_t mask)
Log *log = LogAccessor (true, NULL);
if (log && mask)
{
- uint32_t log_mask = log->GetMask().GetAllFlagBits();
+ uint32_t log_mask = log->GetMask().Get();
if ((log_mask & mask) != mask)
return NULL;
}
@@ -101,7 +101,7 @@ Log *
lldb_private::GetLogIfAnyCategoriesSet (uint32_t mask)
{
Log *log = LogAccessor (true, NULL);
- if (log && mask && (mask & log->GetMask().GetAllFlagBits()))
+ if (log && mask && (mask & log->GetMask().Get()))
return log;
return NULL;
}
@@ -121,7 +121,7 @@ lldb_private::EnableLog (StreamSP &log_stream_sp, uint32_t log_options, Args &ar
uint32_t flag_bits;
Log* log = LogAccessor (true, NULL);
if (log)
- flag_bits = log->GetMask().GetAllFlagBits();
+ flag_bits = log->GetMask().Get();
else
flag_bits = 0;
@@ -166,8 +166,8 @@ lldb_private::EnableLog (StreamSP &log_stream_sp, uint32_t log_options, Args &ar
}
}
- log->GetMask().SetAllFlagBits(flag_bits);
- log->GetOptions().SetAllFlagBits(log_options);
+ log->GetMask().Reset(flag_bits);
+ log->GetOptions().Reset(log_options);
}
return log;
}
OpenPOWER on IntegriCloud