29 lines
480 B
C++
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
|