]> granicus.if.org Git - clang/commitdiff
Win64: Disable uwtable until we fix .pdata emission in LLVM
authorReid Kleckner <reid@kleckner.net>
Tue, 1 Jul 2014 22:23:54 +0000 (22:23 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 1 Jul 2014 22:23:54 +0000 (22:23 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212137 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/WindowsToolChain.cpp

index a1ba7a7008af171ba687e1e694eb07e85d1cd160..913425a19f0046129d18d69c4384d9b55d5c60f2 100644 (file)
@@ -59,7 +59,11 @@ bool Windows::IsIntegratedAssemblerDefault() const {
 }
 
 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 {