diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-04-07 05:41:11 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-04-07 05:41:11 +0000 |
commit | 724275ba5fb137eedbb1930e5bad493acea1b4ce (patch) | |
tree | c4685b16122f59ceaccb3b2fb4a780123a051cd1 /clang/lib/Frontend/ChainedIncludesSource.cpp | |
parent | 979e9756ecbcba1a1b4743048cb1193fb799bd53 (diff) | |
download | bcm5719-llvm-724275ba5fb137eedbb1930e5bad493acea1b4ce.tar.gz bcm5719-llvm-724275ba5fb137eedbb1930e5bad493acea1b4ce.zip |
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
Diffstat (limited to 'clang/lib/Frontend/ChainedIncludesSource.cpp')
-rw-r--r-- | clang/lib/Frontend/ChainedIncludesSource.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<ExternalSemaSource> 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); |