Skip to content

Commit 587ea97

Browse files
committed
fixup! hoist GetLog call; remove using-namespace declaration
1 parent f7f6d26 commit 587ea97

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lldb/source/Target/VerboseTrapFrameRecognizer.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "lldb/Utility/LLDBLog.h"
1010
#include "lldb/Utility/Log.h"
1111

12-
using namespace llvm;
1312
using namespace lldb;
1413
using namespace lldb_private;
1514

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

3029
StackFrameSP most_relevant_frame_sp = thread_sp->GetStackFrameAtIndex(1);
3130

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

0 commit comments

Comments
 (0)