mirror of
https://github.com/rui314/mold.git
synced 2024-11-10 00:59:38 +03:00
temporary
This commit is contained in:
parent
43d009b1cf
commit
3aba72edf5
2
Makefile
2
Makefile
@ -11,7 +11,7 @@ CPPFLAGS=-g $(shell $(LLVM_CONFIG) --cxxflags) -IoneTBB/include -pthread -O2
|
||||
LDFLAGS=$(shell $(LLVM_CONFIG) --ldflags) -L$(TBB_LIBDIR) -Wl,-rpath=$(TBB_LIBDIR)
|
||||
LIBS=-pthread -ltbb -lcurses -Wl,--start-group $(LLVM_LIBS) -Wl,--end-group
|
||||
OBJS=main.o writer.o input_files.o input_sections.o output_sections.o symtab.o \
|
||||
output_file.o
|
||||
output_file.o intern.o
|
||||
|
||||
chibild: $(OBJS)
|
||||
$(CXX) $(CFLAGS) $(OBJS) -o $@ $(LDFLAGS) $(LIBS)
|
||||
|
19
chibild.h
19
chibild.h
@ -86,6 +86,25 @@ class SymbolTable;
|
||||
class InputSection;
|
||||
class ObjectFile;
|
||||
|
||||
//
|
||||
// intern.cc
|
||||
//
|
||||
|
||||
class IString {
|
||||
IString() : IString("") {}
|
||||
IString(const IString &other) : data(other.data), size(other.size) {}
|
||||
IString(StringRef s);
|
||||
|
||||
bool operator==(const IString &other) { return data == other.data; }
|
||||
|
||||
public:
|
||||
typedef tbb::concurrent_hash_map<StringRef, StringRef> MapType;
|
||||
static MapType map;
|
||||
|
||||
const char *data;
|
||||
uint32_t size;
|
||||
};
|
||||
|
||||
//
|
||||
// symtab.cc
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user