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:
Charles Davis
2010-08-19 02:18:14 +00:00
parent a0734c5fbd
commit 6bcb07ad71
5 changed files with 34 additions and 18 deletions

View File

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