Home | History | Annotate | Download | only in MC

Lines Matching refs:MCLDFile

1 //===- MCLDFile.h ---------------------------------------------------------===//
10 // MCLDFile represents a file, the content of the file is stored in LDContext.
35 /** \class MCLDFile
36 * \brief MCLDFile represents the file being linked or produced.
38 * MCLDFile is the storage of name, path and type
39 * A MCLDFile just refers to LDContext, not owns it.
43 class MCLDFile : private Uncopyable
57 MCLDFile();
58 MCLDFile(llvm::StringRef pName);
59 MCLDFile(llvm::StringRef pName,
63 virtual ~MCLDFile();
127 * MCLDFileFactory also provides the MCLCContextFactory to MCLDFile.
128 * MCLDFile is responsed for the life of LDContext, therefore, the best
129 * idea is let MCLDFile control the life of LDContext. Since SectLinker
136 class MCLDFileFactory : public GCFactory<MCLDFile, NUM>
139 typedef GCFactory<MCLDFile, NUM> Alloc;
143 MCLDFile* produce(llvm::StringRef pName,
145 unsigned int pType = MCLDFile::Unknown);
147 MCLDFile* produce();
155 mcld::MCLDFile* mcld::MCLDFileFactory<NUM>::produce(llvm::StringRef pName,
159 mcld::MCLDFile* result = Alloc::allocate();
160 new (result) mcld::MCLDFile(pName, pPath, pType);
165 mcld::MCLDFile* mcld::MCLDFileFactory<NUM>::produce()
167 mcld::MCLDFile* result = Alloc::allocate();
168 new (result) mcld::MCLDFile();