1 //===-- TempFile.h ----------------------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #include "llvm/ADT/SmallString.h"
10 #include "llvm/ADT/StringRef.h"
11 #include "llvm/Support/Error.h"
13 namespace lldb_fuzzer
{
20 static std::unique_ptr
<TempFile
> Create(uint8_t *data
, size_t size
);
21 llvm::StringRef
GetPath() { return m_path
.str(); }
24 llvm::SmallString
<128> m_path
;
27 } // namespace lldb_fuzzer