[Lldb-commits] [lldb] [lldb-dap] Reuse source object logics (PR #141426)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu May 29 22:35:42 PDT 2025
================
@@ -0,0 +1,17 @@
+//===-- ProtocolUtils.cpp -------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "Protocol/ProtocolUtils.h"
+
+namespace lldb_dap::protocol {
+
+bool IsAssemblySource(const protocol::Source &source) {
+ return source.sourceReference.value_or(0) != 0;
+}
----------------
JDevlieghere wrote:
Why does having a source reference means that the source is assembly?
https://github.com/llvm/llvm-project/pull/141426
More information about the lldb-commits
mailing list