From 502cc9c8dc1941877b35e45d742a3e36264671ca Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 9 Jun 2016 09:54:57 +0800 Subject: HIR - Save and use paths to #[lang] items --- src/hir/hir.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/hir/hir.hpp') diff --git a/src/hir/hir.hpp b/src/hir/hir.hpp index 3447aaa0..a938579a 100644 --- a/src/hir/hir.hpp +++ b/src/hir/hir.hpp @@ -263,6 +263,9 @@ public: /// Macros exported by this crate ::std::unordered_map< ::std::string, ::MacroRules > m_exported_macros; + /// Language items avaliable through this crate (includes ones from loaded externs) + ::std::unordered_map< ::std::string, ::HIR::SimplePath> m_lang_items; + const ::HIR::SimplePath& get_lang_item_path(const Span& sp, const char* name) const; const ::HIR::TypeItem& get_typeitem_by_path(const Span& sp, const ::HIR::SimplePath& path) const; -- cgit v1.2.3