diff options
author | Rui Ueyama <ruiu@google.com> | 2014-12-03 04:34:20 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2014-12-03 04:34:20 +0000 |
commit | d31cf6065f4c096cf703ea32f84fa843b44a978b (patch) | |
tree | 73b54e4f330983ad76e87fcb5fd050d3e6fe034c /llvm/unittests/ADT/SmallVectorTest.cpp | |
parent | 1f0dded057a77250c7122d89c29275c1c599127e (diff) | |
download | bcm5719-llvm-d31cf6065f4c096cf703ea32f84fa843b44a978b.tar.gz bcm5719-llvm-d31cf6065f4c096cf703ea32f84fa843b44a978b.zip |
[PECOFF] Fix a bug in /export option handler.
/export option can be given multiple times to specify multiple
symbols to be exported. /export accepts both decorated and
undecorated name.
If you give both undecorated and decorated name of the same symbol
to /export, they are resolved to the same symbol. In this case,
we need to de-duplicate the exported names, so that we don't have
duplicated items in the export symbol table in a DLL.
We remove duplicate items from a vector. The bug was there.
Because we had pointers pointing to elements of the vector,
after an item is removed, they would point wrong elements.
This patch is to remove these pointers. Added a test for that case.
llvm-svn: 223200
Diffstat (limited to 'llvm/unittests/ADT/SmallVectorTest.cpp')
0 files changed, 0 insertions, 0 deletions