summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Object/obj2yaml.test5
-rw-r--r--tools/obj2yaml/coff2yaml.cpp4
2 files changed, 5 insertions, 4 deletions
diff --git a/test/Object/obj2yaml.test b/test/Object/obj2yaml.test
index c601109085..5c145e87d5 100644
--- a/test/Object/obj2yaml.test
+++ b/test/Object/obj2yaml.test
@@ -1,6 +1,5 @@
-RUN-disabled: obj2yaml %p/Inputs/trivial-object-test.coff-i386 | FileCheck %s --check-prefix COFF-I386
-RUN-disabled: obj2yaml %p/Inputs/trivial-object-test.coff-x86-64 | FileCheck %s --check-prefix COFF-X86-64
-RUN: true
+RUN: obj2yaml %p/Inputs/trivial-object-test.coff-i386 | FileCheck %s --check-prefix COFF-I386
+RUN: obj2yaml %p/Inputs/trivial-object-test.coff-x86-64 | FileCheck %s --check-prefix COFF-X86-64
COFF-I386: header:
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);