From 724275ba5fb137eedbb1930e5bad493acea1b4ce Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Thu, 7 Apr 2016 05:41:11 +0000 Subject: Basic: thread CodeGenOptions into TargetInfo This threads CodeGenOptions into the TargetInfo hierarchy. This is motivated by ARM which can change some target information based on the EABI selected (-meabi). Similar options exist for other platforms (e.g. MIPS) and thus is generally useful. NFC. llvm-svn: 265640 --- clang/lib/Frontend/ChainedIncludesSource.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/lib/Frontend/ChainedIncludesSource.cpp') diff --git a/clang/lib/Frontend/ChainedIncludesSource.cpp b/clang/lib/Frontend/ChainedIncludesSource.cpp index 1c1081fbe08..3707976a21b 100644 --- a/clang/lib/Frontend/ChainedIncludesSource.cpp +++ b/clang/lib/Frontend/ChainedIncludesSource.cpp @@ -152,7 +152,8 @@ IntrusiveRefCntPtr clang::createChainedIncludesSource( Clang->setInvocation(CInvok.release()); Clang->setDiagnostics(Diags.get()); Clang->setTarget(TargetInfo::CreateTargetInfo( - Clang->getDiagnostics(), Clang->getInvocation().TargetOpts)); + Clang->getDiagnostics(), Clang->getInvocation().TargetOpts, + Clang->getCodeGenOpts())); Clang->createFileManager(); Clang->createSourceManager(Clang->getFileManager()); Clang->createPreprocessor(TU_Prefix); -- cgit v1.2.3