9#ifndef LLDB_SOURCE_API_UTILS_H
10#define LLDB_SOURCE_API_UTILS_H
15#include "llvm/ADT/STLExtras.h"
25template <
typename T> std::unique_ptr<T>
clone(
const std::unique_ptr<T> &src) {
27 return std::make_unique<T>(*src);
31template <
typename T> std::shared_ptr<T>
clone(
const std::shared_ptr<T> &src) {
33 return std::make_shared<T>(*src);
StringPoolRef GetStringPool() const
The pool for strings handed out through the SB API that belong to this debugger.
A handle to a StringPool that does not own it.
Debugger & GetDebugger() const
A class that represents a running process on the host machine.
std::unique_ptr< T > clone(const std::unique_ptr< T > &src)
StringPoolRef GetDebuggerStringPool(const Target &target)
Strings interned here live as long as target's debugger.