1 //===-- RegisterInfoInterface.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_RegisterInfoInterface_h
11 #define lldb_RegisterInfoInterface_h
12 
13 namespace lldb_private
14 {
15 
16     ///------------------------------------------------------------------------------
17     /// @class RegisterInfoInterface
18     ///
19     /// @brief RegisterInfo interface to patch RegisterInfo structure for archs.
20     ///------------------------------------------------------------------------------
21     class RegisterInfoInterface
22     {
23     public:
24         RegisterInfoInterface(const lldb_private::ArchSpec& target_arch) : m_target_arch(target_arch) {}
25         virtual ~RegisterInfoInterface () {}
26 
27         virtual size_t
28         GetGPRSize () = 0;
29 
30         virtual const lldb_private::RegisterInfo *
31         GetRegisterInfo () = 0;
32 
33     public:
34         lldb_private::ArchSpec m_target_arch;
35     };
36 
37 }
38 
39 #endif
40