[PATCH] D55381: [llvm-tapi] Don't try to override SequenceTraits for std::string
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 7 11:32:11 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL348630: [llvm-tapi] Don't try to override SequenceTraits for std::string (authored by sbc, committed by ).
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55381/new/
https://reviews.llvm.org/D55381
Files:
llvm/trunk/lib/TextAPI/ELF/TBEHandler.cpp
llvm/trunk/unittests/TextAPI/ELFYAMLTest.cpp
Index: llvm/trunk/lib/TextAPI/ELF/TBEHandler.cpp
===================================================================
--- llvm/trunk/lib/TextAPI/ELF/TBEHandler.cpp
+++ llvm/trunk/lib/TextAPI/ELF/TBEHandler.cpp
@@ -126,23 +126,6 @@
}
};
-/// YAML traits for generic string vectors (i.e. list of needed libraries).
-template <> struct SequenceTraits<std::vector<std::string>> {
- static size_t size(IO &IO, std::vector<std::string> &List) {
- return List.size();
- }
-
- static std::string &element(IO &IO, std::vector<std::string> &List,
- size_t Index) {
- if (Index >= List.size())
- List.resize(Index + 1);
- return List[Index];
- }
-
- // Compacts list of needed libraries into a single line.
- static const bool flow = true;
-};
-
/// YAML traits for ELFStub objects.
template <> struct MappingTraits<ELFStub> {
static void mapping(IO &IO, ELFStub &Stub) {
Index: llvm/trunk/unittests/TextAPI/ELFYAMLTest.cpp
===================================================================
--- llvm/trunk/unittests/TextAPI/ELFYAMLTest.cpp
+++ llvm/trunk/unittests/TextAPI/ELFYAMLTest.cpp
@@ -196,7 +196,10 @@
"TbeVersion: 1.0\n"
"SoName: nosyms.so\n"
"Arch: x86_64\n"
- "NeededLibs: [ libc.so, libfoo.so, libbar.so ]\n"
+ "NeededLibs: \n"
+ " - libc.so\n"
+ " - libfoo.so\n"
+ " - libbar.so\n"
"Symbols: {}\n"
"...\n";
ELFStub Stub;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55381.177261.patch
Type: text/x-patch
Size: 1692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181207/9c354de4/attachment.bin>
More information about the llvm-commits
mailing list