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 | 95a546ee4dbdc997e9898c9839f3851f46a78b5c (patch) | |
| tree | 1831268fb0626735bb78b6ece5649b3549d444b8 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | 437416c06bc1520baff737c56784480ed964d687 (diff) | |
| download | bcm5719-llvm-95a546ee4dbdc997e9898c9839f3851f46a78b5c.tar.gz bcm5719-llvm-95a546ee4dbdc997e9898c9839f3851f46a78b5c.zip | |
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.
llvm-svn: 105804
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 90abd439b12..880d5372bf0 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -86,8 +86,10 @@ void CodeGenModule::createObjCRuntime() { } void CodeGenModule::createCXXABI() { - // For now, just create an Itanium ABI. - ABI = CreateItaniumCXXABI(*this); + if (Context.Target.getCXXABI() == "microsoft") + ABI = CreateMicrosoftCXXABI(*this); + else + ABI = CreateItaniumCXXABI(*this); } void CodeGenModule::Release() { |

