reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/lld/COFF/Chunks.h
   37 class ObjFile;
tools/lld/COFF/DebugTypes.h
   28 class ObjFile;
tools/lld/COFF/Symbols.h
   41 class ObjFile;

References

include/llvm/ADT/ArrayRef.h
  108         const ArrayRef<U *> &A,
  110            std::is_convertible<U *const *, T const *>::value>::type * = nullptr)
  127     ArrayRef(const std::vector<U *, A> &Vec,
  129                  std::is_convertible<U *const *, T const *>::value>::type* = 0)
include/llvm/ADT/DenseMapInfo.h
   39   static inline T* getEmptyKey() {
   41     Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
   45   static inline T* getTombstoneKey() {
   47     Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
   51   static unsigned getHashValue(const T *PtrVal) {
   56   static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
   56   static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
include/llvm/Support/Alignment.h
  103     return Constant<std::alignment_of<T>::value>();
include/llvm/Support/Allocator.h
   81   template <typename T> T *Allocate(size_t Num = 1) {
   82     return static_cast<T *>(Allocate(Num * sizeof(T), alignof(T)));
   82     return static_cast<T *>(Allocate(Num * sizeof(T), alignof(T)));
  470       for (char *Ptr = Begin; Ptr + sizeof(T) <= End; Ptr += sizeof(T))
  470       for (char *Ptr = Begin; Ptr + sizeof(T) <= End; Ptr += sizeof(T))
  478       char *Begin = (char *)alignAddr(*I, Align::Of<T>());
  488       DestroyElements((char *)alignAddr(Ptr, Align::Of<T>()),
  496   T *Allocate(size_t num = 1) { return Allocator.Allocate<T>(num); }
  496   T *Allocate(size_t num = 1) { return Allocator.Allocate<T>(num); }
include/llvm/Support/Casting.h
   58     return To::classof(&Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  172   using ret_type = To *;       // Pointer arg case, return Ty*
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
include/llvm/Support/PointerLikeTypeTraits.h
   56   static inline void *getAsVoidPointer(T *P) { return P; }
   57   static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
   59   enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
tools/lld/COFF/Chunks.cpp
   32 SectionChunk::SectionChunk(ObjFile *f, const coff_section *h)
  329   ObjFile *file = fromChunk->file;
tools/lld/COFF/Chunks.h
  190     ObjFile *file;
  192     symbol_iterator(ObjFile *file, const coff_relocation *i)
  201   SectionChunk(ObjFile *file, const coff_section *header);
  305   ObjFile *file;
tools/lld/COFF/DebugTypes.cpp
   40   static void enqueue(const ObjFile *dependentFile,
   48   findFromFile(const ObjFile *dependentFile);
   64   UseTypeServerSource(const ObjFile *f, const TypeServer2Record *ts)
   78   PrecompSource(const ObjFile *f) : TpiSource(PCH, f) {}
   85   UsePrecompSource(const ObjFile *f, const PrecompRecord *precomp)
   96 TpiSource::TpiSource(TpiKind k, const ObjFile *f) : kind(k), file(f) {
  100 TpiSource *makeTpiSource(const ObjFile *f) {
  104 TpiSource *makeUseTypeServerSource(const ObjFile *f,
  110 TpiSource *makePrecompSource(const ObjFile *f) {
  114 TpiSource *makeUsePrecompSource(const ObjFile *f,
  135 static std::string getPdbBaseName(const ObjFile *file, StringRef tSPath) {
  159                                          const ObjFile *dependentFile) {
  174 TypeServerSource::findFromFile(const ObjFile *dependentFile) {
  210 Expected<llvm::pdb::NativeSession *> findTypeServerSource(const ObjFile *f) {
  218 void TypeServerSource::enqueue(const ObjFile *dependentFile,
tools/lld/COFF/DebugTypes.h
   34   TpiSource(TpiKind k, const ObjFile *f);
   38   const ObjFile *file;
   41 TpiSource *makeTpiSource(const ObjFile *f);
   42 TpiSource *makeUseTypeServerSource(const ObjFile *f,
   44 TpiSource *makePrecompSource(const ObjFile *f);
   45 TpiSource *makeUsePrecompSource(const ObjFile *f,
   55 findTypeServerSource(const ObjFile *f);
tools/lld/COFF/Driver.cpp
   84   ObjFile::instances.clear();
  207       symtab->addFile(make<ObjFile>(mbref));
  265     obj = make<ObjFile>(mb);
  922   for (ObjFile *obj : ObjFile::instances) {
  922   for (ObjFile *obj : ObjFile::instances) {
 1004   std::vector<ObjFile *> resourceObjFiles;
 1006   for (ObjFile *f : ObjFile::instances) {
 1006   for (ObjFile *f : ObjFile::instances) {
 1024     for (ObjFile *f : resourceObjFiles)
 1028   ObjFile *f = make<ObjFile>(convertResToCOFF(resources, resourceObjFiles));
 1028   ObjFile *f = make<ObjFile>(convertResToCOFF(resources, resourceObjFiles));
 1894     for (auto i = ObjFile::instances.begin(), e = ObjFile::instances.end();
 1894     for (auto i = ObjFile::instances.begin(), e = ObjFile::instances.end();
 1896       ObjFile *file = *i;
 1898         ObjFile::instances.erase(i);
 1899         ObjFile::instances.push_back(file);
tools/lld/COFF/Driver.h
  193                                  ArrayRef<ObjFile *> objs);
tools/lld/COFF/DriverUtils.cpp
  704                                  ArrayRef<ObjFile *> objs) {
  721   for (ObjFile *f : objs) {
tools/lld/COFF/InputFiles.cpp
   70 std::vector<ObjFile *> ObjFile::instances;
  149     file = make<ObjFile>(mb, std::move(symbols));
tools/lld/COFF/InputFiles.h
  168   static std::vector<ObjFile *> instances;
tools/lld/COFF/MapFile.cpp
   50   for (ObjFile *file : ObjFile::instances)
   50   for (ObjFile *file : ObjFile::instances)
tools/lld/COFF/PDB.cpp
  111   void addObjFile(ObjFile *file, CVIndexMap *externIndexMap = nullptr);
  124   Expected<const CVIndexMap &> mergeDebugT(ObjFile *file,
  128   Expected<const CVIndexMap &> maybeMergeTypeServerPDB(ObjFile *file);
  133   Error mergeInPrecompHeaderObj(ObjFile *file, CVIndexMap *objectIndexMap);
  144   Expected<const CVIndexMap &> aquirePrecompObj(ObjFile *file);
  150   void mergeSymbolRecords(ObjFile *file, const CVIndexMap &indexMap,
  198   ObjFile &file;
  235   DebugSHandler(PDBLinker &linker, ObjFile &file, const CVIndexMap &indexMap)
  302 static Optional<ArrayRef<uint8_t>> getDebugH(ObjFile *file) {
  337 PDBLinker::mergeDebugT(ObjFile *file, CVIndexMap *objectIndexMap) {
  419 Expected<const CVIndexMap &> PDBLinker::maybeMergeTypeServerPDB(ObjFile *file) {
  486 Error PDBLinker::mergeInPrecompHeaderObj(ObjFile *file,
  518 static ObjFile *findObjWithPrecompSignature(StringRef fileNameOnly,
  520   for (ObjFile *f : ObjFile::instances) {
  520   for (ObjFile *f : ObjFile::instances) {
  542 Expected<const CVIndexMap &> PDBLinker::aquirePrecompObj(ObjFile *file) {
  583 static void remapTypesInSymbolRecord(ObjFile *file, SymbolKind symKind,
  824 void PDBLinker::mergeSymbolRecords(ObjFile *file, const CVIndexMap &indexMap,
 1160 void PDBLinker::addObjFile(ObjFile *file, CVIndexMap *externIndexMap) {
 1228   for (ObjFile *file : ObjFile::instances) {
 1228   for (ObjFile *file : ObjFile::instances) {
 1276   for (ObjFile *file : ObjFile::instances)
 1276   for (ObjFile *file : ObjFile::instances)
 1324   print(ObjFile::instances.size(),
tools/lld/COFF/SymbolTable.cpp
   47   if (auto *f = dyn_cast<ObjFile>(file)) {
   47   if (auto *f = dyn_cast<ObjFile>(file)) {
   48     ObjFile::instances.push_back(f);
  138 std::vector<std::string> getSymbolLocations(ObjFile *file, uint32_t symIndex) {
  182   if (auto *o = dyn_cast<ObjFile>(file))
  182   if (auto *o = dyn_cast<ObjFile>(file))
  313                      const std::vector<ObjFile *> objFiles,
  356   for (ObjFile *file : objFiles)
  390                        /* localImports */ nullptr, ObjFile::instances,
  454       ObjFile::instances, /* bitcode files no longer needed */ nullptr);
  530 static std::string getSourceLocationObj(ObjFile *file, SectionChunk *sc,
  549   if (auto *o = dyn_cast<ObjFile>(file))
  549   if (auto *o = dyn_cast<ObjFile>(file))
  571   if (d && isa<ObjFile>(d->getFile())) {
  712   for (ObjFile *file : ObjFile::instances) {
  712   for (ObjFile *file : ObjFile::instances) {
  798     auto *obj = make<ObjFile>(MemoryBufferRef(object, "lto.tmp"));
  798     auto *obj = make<ObjFile>(MemoryBufferRef(object, "lto.tmp"));
  800     ObjFile::instances.push_back(obj);
tools/lld/COFF/SymbolTable.h
  136 std::vector<std::string> getSymbolLocations(ObjFile *file, uint32_t symIndex);
tools/lld/COFF/Symbols.cpp
   66     cast<ObjFile>(d->file)->getCOFFObj()->getSymbolName(d->sym, nameStr);
  104   size_t symSize = cast<ObjFile>(file)->getCOFFObj()->getSymbolTableEntrySize();
tools/lld/COFF/Writer.cpp
  212   void markSymbolsForRVATable(ObjFile *file,
  403   DenseMap<std::pair<ObjFile *, Defined *>, uint32_t> thunkSymtabIndices;
  417     ObjFile *file = sc->file;
 1155     for (ObjFile *file : ObjFile::instances) {
 1155     for (ObjFile *file : ObjFile::instances) {
 1472   for (ObjFile *file : ObjFile::instances) {
 1472   for (ObjFile *file : ObjFile::instances) {
 1548 static void markSymbolsWithRelocations(ObjFile *file,
 1575   for (ObjFile *file : ObjFile::instances) {
 1575   for (ObjFile *file : ObjFile::instances) {
 1623 void Writer::markSymbolsForRVATable(ObjFile *file,
tools/lld/include/lld/Common/Memory.h
   47   llvm::SpecificBumpPtrAllocator<T> alloc;
   52 template <typename T, typename... U> T *make(U &&... args) {
   53   static SpecificAlloc<T> alloc;
   54   return new (alloc.alloc.Allocate()) T(std::forward<U>(args)...);