diff options
Diffstat (limited to 'lld/COFF/InputFiles.h')
| -rw-r--r-- | lld/COFF/InputFiles.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lld/COFF/InputFiles.h b/lld/COFF/InputFiles.h index 2b045358fca..9e156078422 100644 --- a/lld/COFF/InputFiles.h +++ b/lld/COFF/InputFiles.h @@ -15,6 +15,7 @@ #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseSet.h" +#include "llvm/DebugInfo/CodeView/TypeRecord.h" #include "llvm/LTO/LTO.h" #include "llvm/Object/Archive.h" #include "llvm/Object/COFF.h" @@ -122,9 +123,12 @@ public: return Symbols[SymbolIndex]; } - // Returns the underying COFF file. + // Returns the underlying COFF file. COFFObjectFile *getCOFFObj() { return COFFObj.get(); } + // Whether the object was already merged into the final PDB or not + bool wasProcessedForPDB() const { return !!ModuleDBI; } + static std::vector<ObjFile *> Instances; // Flags in the absolute @feat.00 symbol if it is present. These usually @@ -147,6 +151,11 @@ public: const coff_section *AddrsigSec = nullptr; + // When using Microsoft precompiled headers, this is the PCH's key. + // The same key is used by both the precompiled object, and objects using the + // precompiled object. Any difference indicates out-of-date objects. + llvm::Optional<llvm::codeview::EndPrecompRecord> EndPrecomp; + private: void initializeChunks(); void initializeSymbols(); |

