[X86] LowerShift - don't prematurely lower to x86 vector shift imm instructions ...
[llvm-project.git] / lldb / tools / lldb-fuzzer / utils / TempFile.h
blob27453b0c62d2051387a523ea7524cffac1d211c8
1 //===-- TempFile.h ----------------------------------------------*- C++ -*-===//
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 "llvm/ADT/SmallString.h"
10 #include "llvm/ADT/StringRef.h"
11 #include "llvm/Support/Error.h"
13 namespace lldb_fuzzer {
15 class TempFile {
16 public:
17 TempFile() = default;
18 ~TempFile();
20 static std::unique_ptr<TempFile> Create(uint8_t *data, size_t size);
21 llvm::StringRef GetPath() { return m_path.str(); }
23 private:
24 llvm::SmallString<128> m_path;
27 } // namespace lldb_fuzzer