Fix build broken due to order of initialization problem.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267571 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Zachary Turner 2016-04-26 16:57:53 +00:00
parent 5571fd88f1
commit c81ec9b2de
2 changed files with 5 additions and 4 deletions

View File

@ -22,7 +22,7 @@ namespace llvm {
class PDBInfoStream {
public:
PDBInfoStream(const PDBFile &File);
PDBInfoStream(PDBFile &File);
std::error_code reload();
@ -33,9 +33,11 @@ public:
uint32_t getNamedStreamIndex(llvm::StringRef Name) const;
PDBFile &getFile() { return Pdb; }
private:
PDBFile &Pdb;
PDBStream Stream1;
const PDBFile &Pdb;
// PDB file format version. We only support VC70. See the enumeration
// `PdbRaw_ImplVer` for the other possible values.

View File

@ -13,8 +13,7 @@
using namespace llvm;
PDBInfoStream::PDBInfoStream(const PDBFile &File)
: Pdb(File), Stream1(1, File) {}
PDBInfoStream::PDBInfoStream(PDBFile &File) : Pdb(File), Stream1(1, File) {}
std::error_code PDBInfoStream::reload() {
Stream1.setOffset(0);