Add support for detection of Intel SandyBridge.
authorRoman Divacky <rdivacky@freebsd.org>
Tue, 5 Apr 2011 20:25:36 +0000 (20:25 +0000)
committerRoman Divacky <rdivacky@freebsd.org>
Tue, 5 Apr 2011 20:25:36 +0000 (20:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128920 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Host.cpp

index 4dacf9691d6efe8de3493047c334ce801961b765..911c64accec389587805493321114fd42841b2c7 100644 (file)
@@ -214,6 +214,8 @@ std::string sys::getHostCPUName() {
                // As found in a Summer 2010 model iMac.
       case 37: // Intel Core i7, laptop version.
         return "corei7";
                // As found in a Summer 2010 model iMac.
       case 37: // Intel Core i7, laptop version.
         return "corei7";
+      case 42: // SandyBridge
+        return "sandybridge";
 
       case 28: // Intel Atom processor. All processors are manufactured using
                // the 45 nm process
 
       case 28: // Intel Atom processor. All processors are manufactured using
                // the 45 nm process