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
This commit is contained in:
Charles Davis
2010-06-11 01:06:47 +00:00
parent 437416c06b
commit 95a546ee4d
9 changed files with 42 additions and 3 deletions

View File

@@ -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() {