Skip to content

Commit

Permalink
fixup! hoist GetLog call; remove using-namespace declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael137 committed Mar 12, 2024
1 parent f7f6d26 commit 587ea97
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lldb/source/Target/VerboseTrapFrameRecognizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "lldb/Utility/LLDBLog.h"
#include "lldb/Utility/Log.h"

using namespace llvm;
using namespace lldb;
using namespace lldb_private;

Expand All @@ -29,8 +28,8 @@ VerboseTrapFrameRecognizer::RecognizeFrame(lldb::StackFrameSP frame_sp) {

StackFrameSP most_relevant_frame_sp = thread_sp->GetStackFrameAtIndex(1);

Log *log = GetLog(LLDBLog::Unwind);
if (!most_relevant_frame_sp) {
Log *log = GetLog(LLDBLog::Unwind);
LLDB_LOG(
log,
"Failed to find most relevant frame: Hit unwinding bound (1 frame)!");
Expand Down Expand Up @@ -62,7 +61,6 @@ VerboseTrapFrameRecognizer::RecognizeFrame(lldb::StackFrameSP frame_sp) {
// Replaces "__llvm_verbose_trap: " with "Runtime Error: "
auto space_position = error_message.find(" ");
if (space_position == std::string::npos) {
Log *log = GetLog(LLDBLog::Unwind);
LLDB_LOGF(log,
"Unexpected function name format. Expected '<trap prefix>: "
"<trap message>' but got: '%s'.",
Expand Down

0 comments on commit 587ea97

Please sign in to comment.