r212137 - Win64: Disable uwtable until we fix .pdata emission in LLVM

Reid Kleckner reid at kleckner.net
Tue Jul 1 15:23:54 PDT 2014


Author: rnk
Date: Tue Jul  1 17:23:54 2014
New Revision: 212137

URL: http://llvm.org/viewvc/llvm-project?rev=212137&view=rev
Log:
Win64: Disable uwtable until we fix .pdata emission in LLVM

LLVM r211399 started emitting .pdata for win64 by default.
Unfortunately, it produces invalid object files.  I plan to fix that
Soon.  For now, don't request unwind tables.  This fixes the clang-cl
self-host on win64.

Modified:
    cfe/trunk/lib/Driver/WindowsToolChain.cpp

Modified: cfe/trunk/lib/Driver/WindowsToolChain.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/WindowsToolChain.cpp?rev=212137&r1=212136&r2=212137&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/WindowsToolChain.cpp (original)
+++ cfe/trunk/lib/Driver/WindowsToolChain.cpp Tue Jul  1 17:23:54 2014
@@ -59,7 +59,11 @@ bool Windows::IsIntegratedAssemblerDefau
 }
 
 bool Windows::IsUnwindTablesDefault() const {
-  return getArch() == llvm::Triple::x86_64;
+  // FIXME: LLVM's lowering of Win64 data is broken right now.  MSVC's linker
+  // says that our object files provide invalid .pdata contributions.  Until
+  // that is fixed, don't ask for unwind tables.
+  return false;
+  //return getArch() == llvm::Triple::x86_64;
 }
 
 bool Windows::isPICDefault() const {





More information about the cfe-commits mailing list