mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Initial checkin
This commit is contained in:
parent
c74712dad9
commit
078564ac9e
3242 changed files with 1616395 additions and 0 deletions
36
IDEHelper/Linker/BlSymTable.h
Normal file
36
IDEHelper/Linker/BlSymTable.h
Normal file
|
@ -0,0 +1,36 @@
|
|||
#pragma once
|
||||
|
||||
#include "../Beef/BfCommon.h"
|
||||
#include <unordered_map>
|
||||
#include "BeefySysLib/util/Hash.h"
|
||||
|
||||
//#define BL_USE_DENSEMAP_SYMTAB
|
||||
|
||||
#ifdef BL_USE_DENSEMAP_SYMTAB
|
||||
#include <sparsehash/dense_hash_map>
|
||||
#include <sparsehash/dense_hash_set>
|
||||
#endif
|
||||
|
||||
NS_BF_BEGIN
|
||||
|
||||
class BlContext;
|
||||
class BlSymbol;
|
||||
|
||||
class BlSymTable
|
||||
{
|
||||
public:
|
||||
BlContext* mContext;
|
||||
#ifdef BL_USE_DENSEMAP_SYMTAB
|
||||
google::dense_hash_map<Val128, BlSymbol*, Val128::Hash, Val128::Equals> mMap;
|
||||
#else
|
||||
std::unordered_map<Val128, BlSymbol*, Val128::Hash, Val128::Equals> mMap;
|
||||
#endif
|
||||
|
||||
public:
|
||||
BlSymTable();
|
||||
|
||||
BlSymbol* Add(const char* name, bool* isNew = NULL);
|
||||
};
|
||||
|
||||
NS_BF_END
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue