summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-06-21 18:23:19 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-06-21 18:23:19 +0000
commitafaeed5322a4604322416007145e6d85d764bf66 (patch)
tree339b2fa78ef5b0984c5571d691c69ae762cbc729 /llvm/include
parent2a6f9f8adf88436d588abdbe232129e5de31bef2 (diff)
downloadbcm5719-llvm-afaeed5322a4604322416007145e6d85d764bf66.tar.gz
bcm5719-llvm-afaeed5322a4604322416007145e6d85d764bf66.zip
Object: Have the irsymtab builder take a string table builder. NFCI.
This will be needed in order to share the irsymtab string table with the bitcode string table. Differential Revision: https://reviews.llvm.org/D33971 llvm-svn: 305937
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Object/IRSymtab.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/include/llvm/Object/IRSymtab.h b/llvm/include/llvm/Object/IRSymtab.h
index 5b832141a86..502f133d307 100644
--- a/llvm/include/llvm/Object/IRSymtab.h
+++ b/llvm/include/llvm/Object/IRSymtab.h
@@ -38,6 +38,7 @@
namespace llvm {
struct BitcodeFileContents;
+class StringTableBuilder;
namespace irsymtab {
@@ -136,9 +137,10 @@ struct Header {
} // end namespace storage
-/// Fills in Symtab and Strtab with a valid symbol and string table for Mods.
+/// Fills in Symtab and StrtabBuilder with a valid symbol and string table for
+/// Mods.
Error build(ArrayRef<Module *> Mods, SmallVector<char, 0> &Symtab,
- SmallVector<char, 0> &Strtab);
+ StringTableBuilder &StrtabBuilder, BumpPtrAllocator &Alloc);
/// This represents a symbol that has been read from a storage::Symbol and
/// possibly a storage::Uncommon.
OpenPOWER on IntegriCloud