mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-16 16:37:42 +00:00
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
This commit is contained in:
parent
15e3b0caac
commit
e67c9c341f
@ -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:
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user