From e67c9c341f18a463f5c5e43f4da520c68df76e9a Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 21 May 2013 18:53:50 +0000 Subject: 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 --- tools/obj2yaml/coff2yaml.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/obj2yaml') diff --git a/tools/obj2yaml/coff2yaml.cpp b/tools/obj2yaml/coff2yaml.cpp index 2a70cec09d..0bb3e24c3c 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 + using namespace llvm; namespace { @@ -24,7 +26,7 @@ class COFFDumper { void dumpSections(unsigned numSections); void dumpSymbols(unsigned numSymbols); StringRef getHexString(ArrayRef Data); - std::vector Strings; + std::list Strings; public: COFFDumper(const object::COFFObjectFile &Obj); -- cgit v1.2.3