Convert windows line endings to linux/unix line endings.
authorCraig Topper <craig.topper@gmail.com>
Mon, 22 Apr 2013 05:38:01 +0000 (05:38 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 22 Apr 2013 05:38:01 +0000 (05:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179995 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Host.cpp

index 73d98d148746ef64636dbec2c308ea775b2c6612..445b3449680ff836cc12919948e419e22b0deaef 100644 (file)
@@ -112,19 +112,19 @@ static bool GetX86CpuIDAndInfo(unsigned value, unsigned *rEAX,
 #endif
 }
 
-static bool OSHasAVXSupport() {\r
-#if defined(__GNUC__)\r
-  // Check xgetbv; this uses a .byte sequence instead of the instruction \r
-  // directly because older assemblers do not include support for xgetbv and \r
-  // there is no easy way to conditionally compile based on the assembler used.\r
-  int rEAX, rEDX;\r
-  __asm__ (".byte 0x0f, 0x01, 0xd0" : "=a" (rEAX), "=d" (rEDX) : "c" (0));\r
-#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 160040219\r
-  unsigned long long rEAX = _xgetbv(_XCR_XFEATURE_ENABLED_MASK);\r
-#else\r
-  int rEAX = 0; // Ensures we return false\r
-#endif\r
-  return (rEAX & 6) == 6;\r
+static bool OSHasAVXSupport() {
+#if defined(__GNUC__)
+  // Check xgetbv; this uses a .byte sequence instead of the instruction
+  // directly because older assemblers do not include support for xgetbv and
+  // there is no easy way to conditionally compile based on the assembler used.
+  int rEAX, rEDX;
+  __asm__ (".byte 0x0f, 0x01, 0xd0" : "=a" (rEAX), "=d" (rEDX) : "c" (0));
+#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 160040219
+  unsigned long long rEAX = _xgetbv(_XCR_XFEATURE_ENABLED_MASK);
+#else
+  int rEAX = 0; // Ensures we return false
+#endif
+  return (rEAX & 6) == 6;
 }
 
 static void DetectX86FamilyModel(unsigned EAX, unsigned &Family,