mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "Adapt to Apple clang change fa1a389c72b32cf46195ef88f5f67b341372a4cb."
This commit was incomplete. Swift SVN r26446
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
#include "clang/Basic/TargetInfo.h"
|
||||
#include "clang/CodeGen/CodeGenABITypes.h"
|
||||
#include "clang/CodeGen/ModuleBuilder.h"
|
||||
#include "clang/Lex/Preprocessor.h"
|
||||
#include "clang/Frontend/CodeGenOptions.h"
|
||||
#include "llvm/IR/Constants.h"
|
||||
#include "llvm/IR/DataLayout.h"
|
||||
@@ -79,11 +78,8 @@ static clang::CodeGenerator *createClangCodeGenerator(ASTContext &Context,
|
||||
auto &CGO = Importer->getClangCodeGenOpts();
|
||||
CGO.OptimizationLevel = Opts.Optimize ? 3 : 0;
|
||||
CGO.DisableFPElim = Opts.DisableFPElim;
|
||||
auto &HSI = Importer->getClangPreprocessor().getHeaderSearchInfo();
|
||||
auto &PPO = Importer->getClangPreprocessor().getPreprocessorOpts();
|
||||
auto *ClangCodeGen = clang::CreateLLVMCodeGen(ClangContext.getDiagnostics(),
|
||||
ModuleName, HSI, PPO, CGO,
|
||||
LLVMContext);
|
||||
ModuleName, CGO, LLVMContext);
|
||||
ClangCodeGen->Initialize(ClangContext);
|
||||
|
||||
return ClangCodeGen;
|
||||
|
||||
Reference in New Issue
Block a user