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 | e5d3bf167a0a4b9a185b07719042836f7358d5c6 (patch) | |
tree | 1c2e00dd3bebc5c60e8be8bce038c6c8e4eff7e4 /include/clang/Basic/TargetInfo.h | |
parent | fcf75bb5b7ec7704ad2c03139746b157307265be (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265640 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/TargetInfo.h')
-rw-r--r-- | include/clang/Basic/TargetInfo.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/clang/Basic/TargetInfo.h b/include/clang/Basic/TargetInfo.h index b98a5d6c41..069c2ac596 100644 --- a/include/clang/Basic/TargetInfo.h +++ b/include/clang/Basic/TargetInfo.h @@ -21,6 +21,7 @@ #include "clang/Basic/TargetCXXABI.h" #include "clang/Basic/TargetOptions.h" #include "clang/Basic/VersionTuple.h" +#include "clang/Frontend/CodeGenOptions.h" #include "llvm/ADT/APInt.h" #include "llvm/ADT/IntrusiveRefCntPtr.h" #include "llvm/ADT/SmallSet.h" @@ -107,7 +108,8 @@ public: /// what the backend expects. static TargetInfo * CreateTargetInfo(DiagnosticsEngine &Diags, - const std::shared_ptr<TargetOptions> &Opts); + const std::shared_ptr<TargetOptions> &Opts, + const CodeGenOptions &CGOpts = CodeGenOptions()); virtual ~TargetInfo(); |