OSDN Git Service

Fix build broken due to order of initialization problem.
authorZachary Turner <zturner@google.com>
Tue, 26 Apr 2016 16:57:53 +0000 (16:57 +0000)
committerZachary Turner <zturner@google.com>
Tue, 26 Apr 2016 16:57:53 +0000 (16:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267571 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo/PDB/Raw/PDBInfoStream.h
lib/DebugInfo/PDB/Raw/PDBInfoStream.cpp

index c22d31d..ed91434 100644 (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.
index 47d9b29..76fa195 100644 (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);