diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-05-21 18:53:50 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-05-21 18:53:50 +0000 |
commit | e67c9c341f18a463f5c5e43f4da520c68df76e9a (patch) | |
tree | 7fab8692dbd8b536525b99af03b9653a328e0b3a /tools/obj2yaml | |
parent | 15e3b0caac3b807b1f87420147e16aab31454a85 (diff) | |
download | external_llvm-e67c9c341f18a463f5c5e43f4da520c68df76e9a.zip external_llvm-e67c9c341f18a463f5c5e43f4da520c68df76e9a.tar.gz external_llvm-e67c9c341f18a463f5c5e43f4da520c68df76e9a.tar.bz2 |
Use std::list so that we have a stable iterator.
I will try to avoid creating these std::strings, but for now this gets
the tests passing with libc++.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182405 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/obj2yaml')
-rw-r--r-- | tools/obj2yaml/coff2yaml.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/obj2yaml/coff2yaml.cpp b/tools/obj2yaml/coff2yaml.cpp index 2a70cec..0bb3e24 100644 --- a/tools/obj2yaml/coff2yaml.cpp +++ b/tools/obj2yaml/coff2yaml.cpp @@ -13,6 +13,8 @@ #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/YAMLTraits.h" +#include <list> + using namespace llvm; namespace { @@ -24,7 +26,7 @@ class COFFDumper { void dumpSections(unsigned numSections); void dumpSymbols(unsigned numSymbols); StringRef getHexString(ArrayRef<uint8_t> Data); - std::vector<std::string> Strings; + std::list<std::string> Strings; public: COFFDumper(const object::COFFObjectFile &Obj); |