[libc] Switch to using the generic `<gpuintrin.h>` implementations (#121810)
[llvm-project.git] / lldb / source / Target / InstrumentationRuntimeStopInfo.cpp
blob7f82581cc601e7bfd152571953c329f54e15d0b0
1 //===-- InstrumentationRuntimeStopInfo.cpp --------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "lldb/Target/InstrumentationRuntimeStopInfo.h"
11 #include "lldb/Target/InstrumentationRuntime.h"
12 #include "lldb/Target/Process.h"
13 #include "lldb/lldb-private.h"
15 using namespace lldb;
16 using namespace lldb_private;
18 InstrumentationRuntimeStopInfo::InstrumentationRuntimeStopInfo(
19 Thread &thread, std::string description,
20 StructuredData::ObjectSP additional_data)
21 : StopInfo(thread, 0) {
22 m_extended_info = additional_data;
23 m_description = description;
26 const char *InstrumentationRuntimeStopInfo::GetDescription() {
27 return m_description.c_str();
30 StopInfoSP
31 InstrumentationRuntimeStopInfo::CreateStopReasonWithInstrumentationData(
32 Thread &thread, std::string description,
33 StructuredData::ObjectSP additionalData) {
34 return StopInfoSP(
35 new InstrumentationRuntimeStopInfo(thread, description, additionalData));