[memprof] Move YAML traits to MemProf.h (NFC) (#118668)
[llvm-project.git] / lldb / source / Plugins / Architecture / PPC64 / ArchitecturePPC64.h
blob80f7f27b54cce945bac0549c7d5b0cd3722bb7a1
1 //===-- ArchitecturePPC64.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 #ifndef LLDB_SOURCE_PLUGINS_ARCHITECTURE_PPC64_ARCHITECTUREPPC64_H
10 #define LLDB_SOURCE_PLUGINS_ARCHITECTURE_PPC64_ARCHITECTUREPPC64_H
12 #include "lldb/Core/Architecture.h"
14 namespace lldb_private {
16 class ArchitecturePPC64 : public Architecture {
17 public:
18 static llvm::StringRef GetPluginNameStatic() { return "ppc64"; }
19 static void Initialize();
20 static void Terminate();
22 llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
24 void OverrideStopInfo(Thread &thread) const override {}
26 /// This method compares current address with current function's
27 /// local entry point, returning the bytes to skip if they match.
28 size_t GetBytesToSkip(Symbol &func, const Address &curr_addr) const override;
30 void AdjustBreakpointAddress(const Symbol &func,
31 Address &addr) const override;
33 private:
34 static std::unique_ptr<Architecture> Create(const ArchSpec &arch);
35 ArchitecturePPC64() = default;
38 } // namespace lldb_private
40 #endif // LLDB_SOURCE_PLUGINS_ARCHITECTURE_PPC64_ARCHITECTUREPPC64_H