llvm-project/llvm/lib
Rafael Espindola 62a07cb59b Stop inventing symbol sizes.
MachO and COFF quite reasonably only define the size for common symbols.

We used to try to figure out the "size" by computing the gap from one symbol to
the next.

This would not be correct in general, since a part of a section can belong to no
visible symbol (padding, private globals).

It was also really expensive, since we would walk every symbol to find the size
of one.

If a caller really wants this, it can sort all the symbols once and get all the
gaps ("size") in O(n log n) instead of O(n^2).

On MachO this also has the advantage of centralizing all the checks for an
invalid n_sect.

llvm-svn: 238028
2015-05-22 15:43:00 +00:00
..
Analysis [InstSimplify] Handle some overflow intrinsics in InstSimplify 2015-05-22 03:56:46 +00:00
AsmParser IR / debug info: Add a DWOId field to DICompileUnit, 2015-05-21 20:37:30 +00:00
Bitcode IR / debug info: Add a DWOId field to DICompileUnit, 2015-05-21 20:37:30 +00:00
CodeGen Compile time improvements to VirtRegRewriter. 2015-05-22 08:11:26 +00:00
DebugInfo Make it easier to use DwarfContext with MCJIT 2015-05-21 21:24:32 +00:00
ExecutionEngine Reapply part of r237975, "Fix Clang -Wmissing-override warning", except for DIContext.h, to apease g++-4.7. 2015-05-22 10:11:07 +00:00
Fuzzer [lib/Fuzzer] ignore flags that start with --; use git pull --rebase instead of just git pull 2015-05-21 20:39:13 +00:00
IR Use Op<0> accessor instead of OperandList for Instructions. NFC 2015-05-21 22:48:54 +00:00
IRReader Use ADDITIONAL_HEADER_DIRS in all LLVM CMake projects. 2015-02-11 03:28:02 +00:00
LTO LTO: Add API to choose whether to embed uselists 2015-04-27 23:38:54 +00:00
LineEditor Use ADDITIONAL_HEADER_DIRS in all LLVM CMake projects. 2015-02-11 03:28:02 +00:00
Linker While in GlobalValue fix the function(s) that don't follow the 2015-05-15 18:20:14 +00:00
MC MC: Shave a pointer off of MCSymbol::Name 2015-05-22 06:04:42 +00:00
Object Stop inventing symbol sizes. 2015-05-22 15:43:00 +00:00
Option Option parsing: properly handle flag aliases for joined options (PR23394) 2015-05-04 18:00:13 +00:00
Passes [PM] Fixup for r231556 where I missed a dependency on intrinsics 2015-03-07 09:08:20 +00:00
ProfileData InstrProf: Treat functions with a coverage map but no profile as unreached 2015-05-13 22:03:04 +00:00
Support Revert r237954, "Resubmit r237708 (MIR Serialization: print and parse LLVM IR using MIR format)." 2015-05-22 07:17:07 +00:00
TableGen [TableGen] Resolve complex def names inside multiclasses 2015-05-21 04:32:56 +00:00
Target [ARM] Fix typo in subtarget feature list for 7em triple 2015-05-22 14:16:22 +00:00
Transforms [InstSimplify] Handle some overflow intrinsics in InstSimplify 2015-05-22 03:56:46 +00:00
CMakeLists.txt [PM] Create a separate library for high-level pass management code. 2015-03-07 09:02:36 +00:00
LLVMBuild.txt Reflow long lines of some LLVMBuild files 2015-05-14 15:38:27 +00:00
Makefile [PM] Create a separate library for high-level pass management code. 2015-03-07 09:02:36 +00:00