From 3646e6289d9fc8678f0b53b466974d6010e3a1b8 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 22 Mar 2017 06:36:09 +0000 Subject: Move setting of LangOpts based on target flags out of CompilerInstance and into TargetInfo::adjust so that it gets called in more places throughout the compiler (AST serialization in particular). Should fix PPC modules after removing of faltivec. llvm-svn: 298487 --- clang/lib/Frontend/CompilerInstance.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'clang/lib/Frontend/CompilerInstance.cpp') diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index e4a1be61fc9..f660429e49d 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -916,12 +916,6 @@ bool CompilerInstance::ExecuteAction(FrontendAction &Act) { if (!hasTarget()) return false; - // FIXME: Setting this here is less than ideal, but it is set based on a - // target option for compatibility and this is immediately after we construct - // a target. - if (getTarget().hasFeature("altivec")) - getLangOpts().AltiVec = 1; - // Create TargetInfo for the other side of CUDA compilation. if (getLangOpts().CUDA && !getFrontendOpts().AuxTriple.empty()) { auto TO = std::make_shared(); -- cgit v1.2.3