If the linker is instructed to create a DLL, it will also create an import library (.lib file) to describe the symbols exported by the DLL. This patch is to create the import library file. There is a convenient command "lib.exe" which can create an import library from a module definition file (.def file). The command is used in this patch. llvm-svn: 197801
24 lines
631 B
C++
24 lines
631 B
C++
//===- lib/ReaderWriter/PECOFF/WriterImportLibrary.h ----------------------===//
|
|
//
|
|
// The LLVM Linker
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLD_READER_WRITER_PE_COFF_WRITER_IMPORT_LIBRARY_H
|
|
#define LLD_READER_WRITER_PE_COFF_WRITER_IMPORT_LIBRARY_H
|
|
|
|
namespace lld {
|
|
class PECOFFLinkingContext;
|
|
|
|
namespace pecoff {
|
|
|
|
void writeImportLibrary(const PECOFFLinkingContext &ctx);
|
|
|
|
} // end namespace pecoff
|
|
} // end namespace lld
|
|
|
|
#endif
|