summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MachObjectWriter.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-10-23 21:48:05 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-10-23 21:48:05 +0000
commit21956e4007c21fd737c3548f7812a2c47adaf588 (patch)
tree616d874a12844107ae8d5edd12bff7638404b955 /llvm/lib/MC/MachObjectWriter.cpp
parent803195ed6df7b7d983d800233d77afe0767ba69b (diff)
downloadbcm5719-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.cpp2
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.
//
OpenPOWER on IntegriCloud