Add some enum goodness as requested by Chris. Now instead of storing the
active C++ ABI as a raw string, we store it as an enum. This should improve performance somewhat. And yes, this time, I started from a clean build directory, and all the tests passed. :) llvm-svn: 111507
This commit is contained in:
@@ -90,10 +90,13 @@ void CodeGenModule::createObjCRuntime() {
|
||||
}
|
||||
|
||||
void CodeGenModule::createCXXABI() {
|
||||
if (Context.Target.getCXXABI() == "microsoft")
|
||||
ABI = CreateMicrosoftCXXABI(*this);
|
||||
else
|
||||
switch (Context.Target.getCXXABI()) {
|
||||
default:
|
||||
ABI = CreateItaniumCXXABI(*this);
|
||||
break;
|
||||
case CXXABI_Microsoft:
|
||||
ABI = CreateMicrosoftCXXABI(*this);
|
||||
}
|
||||
}
|
||||
|
||||
void CodeGenModule::Release() {
|
||||
|
||||
Reference in New Issue
Block a user