[cfe-commits] r116700 - /cfe/trunk/lib/Basic/Targets.cpp

Michael J. Spencer bigcheesegs at gmail.com
Mon Oct 18 00:11:10 PDT 2010


Author: mspencer
Date: Mon Oct 18 02:11:10 2010
New Revision: 116700

URL: http://llvm.org/viewvc/llvm-project?rev=116700&view=rev
Log:
CodeGen: Fix long double on Windows using MSVC runtime.

Modified:
    cfe/trunk/lib/Basic/Targets.cpp

Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=116700&r1=116699&r2=116700&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Mon Oct 18 02:11:10 2010
@@ -1355,6 +1355,8 @@
 public:
   VisualStudioWindowsX86_32TargetInfo(const std::string& triple)
     : WindowsX86_32TargetInfo(triple) {
+    LongDoubleWidth = 64;
+    LongDoubleFormat = &llvm::APFloat::IEEEdouble;
   }
   virtual void getTargetDefines(const LangOptions &Opts,
                                 MacroBuilder &Builder) const {





More information about the cfe-commits mailing list