(root)/
gcc-13.2.0/
gcc/
rust/
util/
rust-abi.h
       1  // This file is part of GCC.
       2  
       3  // GCC is free software; you can redistribute it and/or modify it under
       4  // the terms of the GNU General Public License as published by the Free
       5  // Software Foundation; either version 3, or (at your option) any later
       6  // version.
       7  
       8  // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
       9  // WARRANTY; without even the implied warranty of MERCHANTABILITY or
      10  // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
      11  // for more details.
      12  
      13  // You should have received a copy of the GNU General Public License
      14  // along with GCC; see the file COPYING3.  If not see
      15  // <http://www.gnu.org/licenses/>.
      16  
      17  #ifndef RUST_ABI_OPTIONS_H
      18  #define RUST_ABI_OPTIONS_H
      19  
      20  #include "rust-system.h"
      21  
      22  namespace Rust {
      23  
      24  enum ABI
      25  {
      26    UNKNOWN,
      27    RUST,
      28    INTRINSIC,
      29    C,
      30    CDECL,
      31    STDCALL,
      32    FASTCALL,
      33    WIN64,
      34    SYSV64
      35  };
      36  
      37  extern Rust::ABI
      38  get_abi_from_string (const std::string &abi);
      39  
      40  extern std::string
      41  get_string_from_abi (Rust::ABI abi);
      42  
      43  } // namespace Rust
      44  
      45  #endif // RUST_ABI_OPTIONS_H