summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2015-01-28 18:45:28 +0000
committerEnrico Granata <egranata@apple.com>2015-01-28 18:45:28 +0000
commit7e0255c76924f19fe0e4e6dd0de413bbc0ea761c (patch)
tree4ca26644cf8533c9fffce33efd82e1f0ae058bd7
parent0b55151d3e191cebe5083ba1e587f5c53c32d918 (diff)
downloadbcm5719-llvm-7e0255c76924f19fe0e4e6dd0de413bbc0ea761c.tar.gz
bcm5719-llvm-7e0255c76924f19fe0e4e6dd0de413bbc0ea761c.zip
As promised, make this more efficient by only doing all the busy work when necessary
llvm-svn: 227342
-rw-r--r--lldb/source/Symbol/ClangASTType.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Symbol/ClangASTType.cpp b/lldb/source/Symbol/ClangASTType.cpp
index 90958888c84..6dc4063c109 100644
--- a/lldb/source/Symbol/ClangASTType.cpp
+++ b/lldb/source/Symbol/ClangASTType.cpp
@@ -2084,13 +2084,13 @@ ClangASTType::GetBitSize (ExecutionContext *exe_ctx) const
else
{
static bool g_printed = false;
- StreamString s;
- s.Printf("warning: trying to determine the size of type ");
- DumpTypeDescription(&s);
- s.Printf("\n without a valid ExecutionContext. this is not reliable. please file a bug against LLDB.\nbacktrace:\n");
- Host::Backtrace(s, 10);
if (!g_printed)
{
+ StreamString s;
+ s.Printf("warning: trying to determine the size of type ");
+ DumpTypeDescription(&s);
+ s.Printf("\n without a valid ExecutionContext. this is not reliable. please file a bug against LLDB.\nbacktrace:\n");
+ Host::Backtrace(s, 10);
printf("%s\n", s.GetData());
g_printed = true;
}
OpenPOWER on IntegriCloud