summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-readobj/Inputs
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2016-05-14 00:02:53 +0000
committerReid Kleckner <rnk@google.com>2016-05-14 00:02:53 +0000
commit0b269748a6592c263394123a0de15740ad19c152 (patch)
tree5cd58f5a187c9d10b89a60b354007f207313b65c /llvm/test/tools/llvm-readobj/Inputs
parent32b2897af6101e843f8fa90750e0de2a8a84d1cd (diff)
downloadbcm5719-llvm-0b269748a6592c263394123a0de15740ad19c152.tar.gz
bcm5719-llvm-0b269748a6592c263394123a0de15740ad19c152.zip
[codeview] Add type stream merging prototype
Summary: This code is intended to be used as part of LLD's PDB writing. Until that exists, this is exposed via llvm-readobj for testing purposes. Type stream merging uses the following algorithm: - Begin with a new empty stream, and a new empty hash table that maps from type record contents to new type index. - For each new type stream, maintain a map from source type index to destination type index. - For each record, copy it and rewrite its type indices to be valid in the destination type stream. - If the new type record is not already present in the destination stream hash table, append it to the destination type stream, assign it the next type index, and update the two hash tables. - If the type record already exists in the destination stream, discard it and update the type index map to forward the source type index to the existing destination type index. Reviewers: zturner, ruiu Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D20122 llvm-svn: 269521
Diffstat (limited to 'llvm/test/tools/llvm-readobj/Inputs')
-rw-r--r--llvm/test/tools/llvm-readobj/Inputs/codeview-merging-1.objbin0 -> 8515 bytes
-rw-r--r--llvm/test/tools/llvm-readobj/Inputs/codeview-merging-2.objbin0 -> 8507 bytes
2 files changed, 0 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-readobj/Inputs/codeview-merging-1.obj b/llvm/test/tools/llvm-readobj/Inputs/codeview-merging-1.obj
new file mode 100644
index 00000000000..e51643a136d
--- /dev/null
+++ b/llvm/test/tools/llvm-readobj/Inputs/codeview-merging-1.obj
Binary files differ
diff --git a/llvm/test/tools/llvm-readobj/Inputs/codeview-merging-2.obj b/llvm/test/tools/llvm-readobj/Inputs/codeview-merging-2.obj
new file mode 100644
index 00000000000..4cf24257dee
--- /dev/null
+++ b/llvm/test/tools/llvm-readobj/Inputs/codeview-merging-2.obj
Binary files differ
OpenPOWER on IntegriCloud