diff options
author | Hans Wennborg <hans@hanshq.net> | 2014-04-30 16:25:02 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2014-04-30 16:25:02 +0000 |
commit | a8febf2283921157da1539c079cd74a55bf89a5a (patch) | |
tree | 9d35112077dfea406ecb273ab0ea1ee2e99292e1 /test/MC/ELF/pic-diff.s | |
parent | b1c1b8a78dce82d3740316ddf94029696ba68674 (diff) |
ELFObjectWriter: deduplicate suffices in strtab
We already do this for shstrtab, so might as well do it for strtab. This
extracts the string table building code into a separate class. The idea
is to use it for other object formats too.
I mostly wanted to do this for the general principle, but it does save a
little bit on object file size. I tried this on a clang bootstrap and
saved 0.54% on the sum of object file sizes (1.14 MB out of 212 MB for
a release build).
Differential Revision: http://reviews.llvm.org/D3533
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207670 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ELF/pic-diff.s')
-rw-r--r-- | test/MC/ELF/pic-diff.s | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/MC/ELF/pic-diff.s b/test/MC/ELF/pic-diff.s index 30c92780f13..5f0b1459ba2 100644 --- a/test/MC/ELF/pic-diff.s +++ b/test/MC/ELF/pic-diff.s @@ -7,7 +7,7 @@ // CHECK-NEXT: ] // CHECK: Symbol { -// CHECK: Name: baz (5) +// CHECK: Name: baz // CHECK-NEXT: Value: 0x0 // CHECK-NEXT: Size: 0 // CHECK-NEXT: Binding: Global |