summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorCharles Davis <cdavis@mines.edu>2010-06-11 01:06:47 +0000
committerCharles Davis <cdavis@mines.edu>2010-06-11 01:06:47 +0000
commit95a546ee4dbdc997e9898c9839f3851f46a78b5c (patch)
tree1831268fb0626735bb78b6ece5649b3549d444b8 /clang/lib/CodeGen/CodeGenModule.cpp
parent437416c06bc1520baff737c56784480ed964d687 (diff)
downloadbcm5719-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.cpp6
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() {
OpenPOWER on IntegriCloud