[Lldb-commits] [lldb] r107528 - in /lldb/trunk/source/Expression: ClangExpression.cpp IRToDWARF.cpp
Sean Callanan
scallanan at apple.com
Fri Jul 2 15:22:28 PDT 2010
Author: spyffe
Date: Fri Jul 2 17:22:28 2010
New Revision: 107528
URL: http://llvm.org/viewvc/llvm-project?rev=107528&view=rev
Log:
Fixes to improve logging (by printing basic
block labels) and produce cleaner IR (by removing
the thread-safe statics guards)
Modified:
lldb/trunk/source/Expression/ClangExpression.cpp
lldb/trunk/source/Expression/IRToDWARF.cpp
Modified: lldb/trunk/source/Expression/ClangExpression.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpression.cpp?rev=107528&r1=107527&r2=107528&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpression.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpression.cpp Fri Jul 2 17:22:28 2010
@@ -236,6 +236,7 @@
// Our hook into Clang's lookup mechanism only works in C++.
m_clang_ap->getLangOpts().CPlusPlus = true;
m_clang_ap->getLangOpts().ObjC1 = true;
+ m_clang_ap->getLangOpts().ThreadsafeStatics = false;
// Disable some warnings.
m_clang_ap->getDiagnosticOpts().Warnings.push_back("no-unused-value");
Modified: lldb/trunk/source/Expression/IRToDWARF.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRToDWARF.cpp?rev=107528&r1=107527&r2=107528&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRToDWARF.cpp (original)
+++ lldb/trunk/source/Expression/IRToDWARF.cpp Fri Jul 2 17:22:28 2010
@@ -1,4 +1,4 @@
-//===-- IRToDWARF.cpp ---------------------------------------*- C++ -*-===//
+//===-- IRToDWARF.cpp -------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@@ -141,7 +141,8 @@
if (log)
{
- log->Printf("Translating a basic block:");
+ log->Printf("Translating basic block %s:",
+ BB.hasName() ? BB.getNameStr().c_str() : "[anonymous]");
llvm::BasicBlock::iterator ii;
More information about the lldb-commits
mailing list