#469: Fix for multi-target compilation

This commit is contained in:
Dmitry Babokin
2013-04-12 14:06:12 +04:00
parent 78a840f48d
commit a0462fe1ee
3 changed files with 39 additions and 20 deletions

View File

@@ -551,10 +551,9 @@ Target::GetTripleString() const {
return triple.str();
}
const char *
Target::GetISAString() const {
switch (m_isa) {
Target::ISAToString(ISA isa) {
switch (isa) {
case Target::SSE2:
return "sse2";
case Target::SSE4:
@@ -568,11 +567,16 @@ Target::GetISAString() const {
case Target::GENERIC:
return "generic";
default:
FATAL("Unhandled target in GetISAString()");
FATAL("Unhandled target in ISAToString()");
}
return "";
}
const char *
Target::GetISAString() const {
return ISAToString(m_isa);
}
static bool
lGenericTypeLayoutIndeterminate(llvm::Type *type) {