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 | c823f00ed150dc049b1d27532a06781f297dea17 (patch) | |
| tree | 723a998e1b31f972f662c86a3a0d600642ae7bd6 /llvm/tools/obj2yaml | |
| parent | 8e5939b605ef98706c111e498093b87a7b0685eb (diff) | |
| download | bcm5719-llvm-c823f00ed150dc049b1d27532a06781f297dea17.tar.gz bcm5719-llvm-c823f00ed150dc049b1d27532a06781f297dea17.zip | |
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++.
llvm-svn: 182405
Diffstat (limited to 'llvm/tools/obj2yaml')
| -rw-r--r-- | llvm/tools/obj2yaml/coff2yaml.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/obj2yaml/coff2yaml.cpp b/llvm/tools/obj2yaml/coff2yaml.cpp index 2a70cec09d9..0bb3e24c3ca 100644 --- a/llvm/tools/obj2yaml/coff2yaml.cpp +++ b/llvm/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); |

