Go to file
Rui Ueyama 3ce825ed26 ELF2: Make SymbolTable a template class.
SymbolTable was not a template class. Instead we had switch-case-based
type dispatch to call desired functions. We had to do that because
SymbolTable was created before we know what ELF type objects had been
passed.

Every time I tried to add a new function to the symbol table, I had to
define a dispatcher which consist of a single switch statement.

It also brought an restriction what the driver can do. For example,
we cannot add undefined symbols before any files are added to the symbol
table. That's because no symbols can be added until the symbol table
knows the ELF type, but when it knows about that, it's too late.

In this patch, the driver makes a decision on what ELF type objects
are being handled. Then the driver creates a SymbolTable object for
an appropriate ELF type.

http://reviews.llvm.org/D13544

llvm-svn: 249902
2015-10-09 21:07:25 +00:00
clang Fix inference of _Nullable for weak Objective-C properties. 2015-10-09 20:36:17 +00:00
clang-tools-extra Add a new checker that tests whether a throw expression throws by value, and whether a catch statement catches by reference. 2015-10-09 20:42:44 +00:00
compiler-rt [CMake] Hand tuning the exclude lists for libclang_rt.10.4.a 2015-10-09 19:53:54 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc integer: remove explicit casts from _MIN definitions 2015-10-06 19:12:12 +00:00
libcxx Split <wctype.h> out of <cwctype>. 2015-10-09 19:57:37 +00:00
libcxxabi Fix incorrect parsing of arguments for nested functions. Reviewed as http://reviews.llvm.org/D13192. Thanks to Anseny Kapoulkine for the patch. 2015-10-08 03:02:09 +00:00
libunwind unwind: Allow the building of libunwind for MIPS. 2015-09-26 18:26:01 +00:00
lld ELF2: Make SymbolTable a template class. 2015-10-09 21:07:25 +00:00
lldb Fix build broken by r249885 2015-10-09 20:56:23 +00:00
llgo [llgo] irgen: always use TargetMachine's data layout 2015-09-25 06:28:14 +00:00
llvm CodeGen: Use range-based for in PostRAScheduler, NFC 2015-10-09 21:05:00 +00:00
openmp [OMPT] Reduce overhead of OMPT 2015-10-09 17:42:52 +00:00
polly Remove some unused variables in -Asserts builds 2015-10-09 18:22:18 +00:00