1 // This file is part of GCC.
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
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
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/>.
20 #include "rust-system.h"
21 #include "rust-tyty.h"
33 // Values defined in rust/lang.opt
38 // this needs to support Legacy and V0 see github #429 or #305
39 std::string
mangle_item (Rust::Compile::Context
*ctx
,
40 const TyTy::BaseType
*ty
,
41 const Resolver::CanonicalPath
&path
) const;
43 static void set_mangling (int frust_mangling_value
)
45 version
= static_cast<MangleVersion
> (frust_mangling_value
);
49 static enum MangleVersion version
;
53 legacy_mangle_item (const TyTy::BaseType
*ty
,
54 const Resolver::CanonicalPath
&path
);
57 v0_mangle_item (Rust::Compile::Context
*ctx
, const TyTy::BaseType
*ty
,
58 const Resolver::CanonicalPath
&path
);
60 } // namespace Compile
62 #endif // RUST_MANGLE_H