diff options
Diffstat (limited to 'contrib/llvm-project/clang/lib/Basic/TargetInfo.cpp')
| -rw-r--r-- | contrib/llvm-project/clang/lib/Basic/TargetInfo.cpp | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/llvm-project/clang/lib/Basic/TargetInfo.cpp b/contrib/llvm-project/clang/lib/Basic/TargetInfo.cpp index a9dfe69b90c5..3a21a19e1f19 100644 --- a/contrib/llvm-project/clang/lib/Basic/TargetInfo.cpp +++ b/contrib/llvm-project/clang/lib/Basic/TargetInfo.cpp @@ -17,6 +17,7 @@  #include "clang/Basic/LangOptions.h"  #include "llvm/ADT/APFloat.h"  #include "llvm/ADT/STLExtras.h" +#include "llvm/IR/DataLayout.h"  #include "llvm/Support/ErrorHandling.h"  #include "llvm/Support/TargetParser.h"  #include <cstdlib> @@ -111,6 +112,7 @@ TargetInfo::TargetInfo(const llvm::Triple &T) : TargetOpts(), Triple(T) {    HasAlignMac68kSupport = false;    HasBuiltinMSVaList = false;    IsRenderScriptTarget = false; +  HasAArch64SVETypes = false;    // Default to no types using fpret.    RealTypeUsesObjCFPRet = 0; @@ -135,6 +137,10 @@ TargetInfo::TargetInfo(const llvm::Triple &T) : TargetOpts(), Triple(T) {  // Out of line virtual dtor for TargetInfo.  TargetInfo::~TargetInfo() {} +void TargetInfo::resetDataLayout(StringRef DL) { +  DataLayout.reset(new llvm::DataLayout(DL)); +} +  bool  TargetInfo::checkCFProtectionBranchSupported(DiagnosticsEngine &Diags) const {    Diags.Report(diag::err_opt_not_valid_on_target) << "cf-protection=branch";  | 
