use both the Mangler and the CBE's mangler for identifiers,
[oota-llvm.git] / lib / System / Host.cpp
index e112698349ee72991fa95b4c912c535dca3b714b..e7193dbce92e9721dcee83027f7a6134d1a04905 100644 (file)
@@ -103,11 +103,8 @@ static void DetectX86FamilyModel(unsigned EAX, unsigned &Family, unsigned &Model
     Model += ((EAX >> 16) & 0xf) << 4; // Bits 16 - 19
   }
 }
-#endif
-
 
 std::string sys::getHostCPUName() {
-#if defined(__x86_64__) || defined(__i386__)
   unsigned EAX = 0, EBX = 0, ECX = 0, EDX = 0;
   if (GetX86CpuIDAndInfo(0x1, &EAX, &EBX, &ECX, &EDX))
     return "generic";
@@ -295,7 +292,14 @@ std::string sys::getHostCPUName() {
       return "generic";
     }
   }
+  return "generic";
+}
+#else
+std::string sys::getHostCPUName() {
+  return "generic";
+}
 #endif
 
-  return "generic";
+bool sys::getHostCPUFeatures(StringMap<bool> &Features){
+  return false;
 }