summaryrefslogtreecommitdiff
path: root/tools/obj2yaml
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-05-21 18:53:50 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-05-21 18:53:50 +0000
commite67c9c341f18a463f5c5e43f4da520c68df76e9a (patch)
tree7fab8692dbd8b536525b99af03b9653a328e0b3a /tools/obj2yaml
parent15e3b0caac3b807b1f87420147e16aab31454a85 (diff)
downloadllvm-e67c9c341f18a463f5c5e43f4da520c68df76e9a.tar.gz
llvm-e67c9c341f18a463f5c5e43f4da520c68df76e9a.tar.bz2
llvm-e67c9c341f18a463f5c5e43f4da520c68df76e9a.tar.xz
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.cpp4
1 files changed, 3 insertions, 1 deletions
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 <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);