Inline a small function. NFC.

llvm-svn: 305428
This commit is contained in:
Rui Ueyama 2017-06-14 23:37:37 +00:00
parent 38bc3df8a3
commit 2aecdde512
1 changed files with 1 additions and 5 deletions

View File

@ -429,7 +429,7 @@ static std::string getImplibPath() {
return Out.str();
}
std::vector<COFFShortExport> createCOFFShortExportFromConfig() {
static void createImportLibrary() {
std::vector<COFFShortExport> Exports;
for (Export &E1 : Config->Exports) {
COFFShortExport E2;
@ -443,11 +443,7 @@ std::vector<COFFShortExport> createCOFFShortExportFromConfig() {
E2.Constant = E1.Constant;
Exports.push_back(E2);
}
return Exports;
}
static void createImportLibrary() {
std::vector<COFFShortExport> Exports = createCOFFShortExportFromConfig();
std::string DLLName = sys::path::filename(Config->OutputFile);
std::string Path = getImplibPath();
writeImportLibrary(DLLName, Path, Exports, Config->Machine);