]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/source/Plugins/Architecture/PPC64/ArchitecturePPC64.h
Merge clang 7.0.1 and several follow-up changes
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / source / Plugins / Architecture / PPC64 / ArchitecturePPC64.h
1 //===-- ArchitecturePPC64.h -------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef LLDB_PLUGIN_ARCHITECTURE_PPC64_H
11 #define LLDB_PLUGIN_ARCHITECTURE_PPC64_H
12
13 #include "lldb/Core/Architecture.h"
14
15 namespace lldb_private {
16
17 class ArchitecturePPC64 : public Architecture {
18 public:
19   static ConstString GetPluginNameStatic();
20   static void Initialize();
21   static void Terminate();
22
23   ConstString GetPluginName() override;
24   uint32_t GetPluginVersion() override;
25
26   void OverrideStopInfo(Thread &thread) const override {}
27
28   //------------------------------------------------------------------
29   /// This method compares current address with current function's
30   /// local entry point, returning the bytes to skip if they match.
31   //------------------------------------------------------------------
32   size_t GetBytesToSkip(Symbol &func, const Address &curr_addr) const override;
33
34   void AdjustBreakpointAddress(const Symbol &func,
35                                Address &addr) const override;
36
37 private:
38   static std::unique_ptr<Architecture> Create(const ArchSpec &arch);
39   ArchitecturePPC64() = default;
40 };
41
42 } // namespace lldb_private
43
44 #endif // LLDB_PLUGIN_ARCHITECTURE_PPC64_H