[llvm] r267571 - Fix build broken due to order of initialization problem.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 26 09:57:54 PDT 2016
Author: zturner
Date: Tue Apr 26 11:57:53 2016
New Revision: 267571
URL: http://llvm.org/viewvc/llvm-project?rev=267571&view=rev
Log:
Fix build broken due to order of initialization problem.
Modified:
llvm/trunk/include/llvm/DebugInfo/PDB/Raw/PDBInfoStream.h
llvm/trunk/lib/DebugInfo/PDB/Raw/PDBInfoStream.cpp
Modified: llvm/trunk/include/llvm/DebugInfo/PDB/Raw/PDBInfoStream.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo/PDB/Raw/PDBInfoStream.h?rev=267571&r1=267570&r2=267571&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo/PDB/Raw/PDBInfoStream.h (original)
+++ llvm/trunk/include/llvm/DebugInfo/PDB/Raw/PDBInfoStream.h Tue Apr 26 11:57:53 2016
@@ -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.
Modified: llvm/trunk/lib/DebugInfo/PDB/Raw/PDBInfoStream.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/PDB/Raw/PDBInfoStream.cpp?rev=267571&r1=267570&r2=267571&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/PDB/Raw/PDBInfoStream.cpp (original)
+++ llvm/trunk/lib/DebugInfo/PDB/Raw/PDBInfoStream.cpp Tue Apr 26 11:57:53 2016
@@ -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);
More information about the llvm-commits
mailing list