This repository has been archived on 2024-03-07. You can view files and clone it, but cannot push or open issues/pull-requests.
wongola/lib/Package.hpp

29 lines
480 B
C++

#ifndef wg_PACKAGE_HPP
#define wg_PACKAGE_HPP
#include "commons.hpp"
#include "SymTable.hpp"
#include "Node.hpp"
#include <llvm/IR/LLVMContext.h>
namespace wg
{
class Package
{
public:
explicit Package(llvm::LLVMContext& context,
llvm::Module& mod);
virtual ~Package();
void scan(std::shared_ptr<Node> node, SymTable& sym);
private:
llvm::LLVMContext& m_context;
llvm::Module& m_module;
std::string m_name;
};
}
#endif