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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user