[IRGen] Allow constructing UniversalLinkageInfo without an IRGenModule.

This commit is contained in:
Huon Wilson
2017-04-05 14:06:18 -07:00
parent 4e263a29d5
commit ac0c76be12
3 changed files with 24 additions and 9 deletions

View File

@@ -119,11 +119,6 @@ static clang::CodeGenerator *createClangCodeGenerator(ASTContext &Context,
return ClangCodeGen;
}
/// A helper for determining if the triple uses the DLL storage
static bool useDllStorage(const llvm::Triple &Triple) {
return Triple.isOSBinFormatCOFF() && !Triple.isOSCygMing();
}
IRGenModule::IRGenModule(IRGenerator &irgen,
std::unique_ptr<llvm::TargetMachine> &&target,
SourceFile *SF, llvm::LLVMContext &LLVMContext,