diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-10-23 21:48:05 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-10-23 21:48:05 +0000 |
commit | 21956e4007c21fd737c3548f7812a2c47adaf588 (patch) | |
tree | 616d874a12844107ae8d5edd12bff7638404b955 /llvm/lib/MC/MachObjectWriter.cpp | |
parent | 803195ed6df7b7d983d800233d77afe0767ba69b (diff) | |
download | bcm5719-llvm-21956e4007c21fd737c3548f7812a2c47adaf588.tar.gz bcm5719-llvm-21956e4007c21fd737c3548f7812a2c47adaf588.zip |
Add a RAW mode to StringTableBuilder.
In this mode it just tries to tail merge the strings without imposing any other
format constrains. It will not, for example, add a null byte between them.
Also add support for keeping a tentative size and offset if we decide to
not optimize after all.
This will be used shortly in lld for merging SHF_STRINGS sections.
llvm-svn: 251153
Diffstat (limited to 'llvm/lib/MC/MachObjectWriter.cpp')
-rw-r--r-- | llvm/lib/MC/MachObjectWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MachObjectWriter.cpp b/llvm/lib/MC/MachObjectWriter.cpp index d5184f1d9a4..17023d82d62 100644 --- a/llvm/lib/MC/MachObjectWriter.cpp +++ b/llvm/lib/MC/MachObjectWriter.cpp @@ -520,7 +520,7 @@ void MachObjectWriter::computeSymbolTable( StringTable.add(Symbol.getName()); } - StringTable.finalize(StringTableBuilder::MachO); + StringTable.finalize(); // Build the symbol arrays but only for non-local symbols. // |