diff options
author | Charles Davis <cdavis@mines.edu> | 2010-06-11 01:06:47 +0000 |
---|---|---|
committer | Charles Davis <cdavis@mines.edu> | 2010-06-11 01:06:47 +0000 |
commit | 98b7c5c496dfccb39287b8f7d8f1444594936d10 (patch) | |
tree | 5b57495e053746c8c6b904d93dc90ad8bee71a7a /lib/Basic/Targets.cpp | |
parent | 6c321e35008f2c99eeb1409b43859a04c48e5ce5 (diff) |
Add an option to specify the target C++ ABI to the frontend. Use it to
select either the default Itanium ABI or the new, experimental Microsoft ABI.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105804 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Targets.cpp')
-rw-r--r-- | lib/Basic/Targets.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index fb58739896..3717b12b15 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -2475,6 +2475,12 @@ TargetInfo *TargetInfo::CreateTargetInfo(Diagnostic &Diags, return 0; } + // Set the target C++ ABI. + if (!Target->setCXXABI(Opts.CXXABI)) { + Diags.Report(diag::err_target_unknown_cxxabi) << Opts.CXXABI; + return 0; + } + // Compute the default target features, we need the target to handle this // because features may have dependencies on one another. llvm::StringMap<bool> Features; |