Cleaning up a bunch of pre-Visual C++ 2012 build hacks.
authorYaron Keren <yaron.keren@gmail.com>
Tue, 4 Mar 2014 09:23:33 +0000 (09:23 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Tue, 4 Mar 2014 09:23:33 +0000 (09:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202806 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt
lib/IR/CMakeLists.txt
lib/Target/ARM/CMakeLists.txt
lib/Target/ARM/Disassembler/CMakeLists.txt
lib/Target/Mips/Disassembler/CMakeLists.txt
unittests/ADT/CMakeLists.txt
unittests/IR/CMakeLists.txt

index 2f513c558aeb3bc6f3db8133ae3e49310335b31b..f3a09dd9f52213ab635758fb9673ccf541e689da 100644 (file)
@@ -562,12 +562,3 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
     )
 endif()
 
-# Workaround for MSVS10 to avoid the Dialog Hell
-# FIXME: This could be removed with future version of CMake.
-if(MSVC_VERSION EQUAL 1600)
-  set(LLVM_SLN_FILENAME "${CMAKE_CURRENT_BINARY_DIR}/LLVM.sln")
-  if( EXISTS "${LLVM_SLN_FILENAME}" )
-    file(APPEND "${LLVM_SLN_FILENAME}" "\n# This should be regenerated!\n")
-  endif()
-endif()
-
index 1ee7140ae42e521d85544dcd993e2e78a9995abf..b1a0a06a0894328378df6361c62f65159dced2a5 100644 (file)
@@ -43,13 +43,4 @@ add_llvm_library(LLVMCore
   Verifier.cpp
   )
 
-# Workaround: It takes over 20 minutes to compile with msvc10.
-# FIXME: Suppressing optimizations to core libraries would not be good thing.
-if( MSVC_VERSION LESS 1700 )
-set_property(
-  SOURCE Function.cpp
-  PROPERTY COMPILE_FLAGS "/Og-"
-  )
-endif()
-
 add_dependencies(LLVMCore intrinsics_gen)
index 66d015e2b3cbf2dd0c6a0504b63ebdf230fb6c3c..eff99c27e43d24e6b3626f7100394f0b2a762889 100644 (file)
@@ -49,14 +49,6 @@ add_llvm_target(ARMCodeGen
   Thumb2SizeReduction.cpp
   )
 
-# workaround for hanging compilation on MSVC9, 10
-if( MSVC_VERSION EQUAL 1600 OR MSVC_VERSION EQUAL 1500 )
-set_property(
-  SOURCE ARMISelLowering.cpp
-  PROPERTY COMPILE_FLAGS "/Od"
-  )
-endif()
-
 add_subdirectory(TargetInfo)
 add_subdirectory(AsmParser)
 add_subdirectory(Disassembler)
index 92bc709ecb24c3f39a2161504cbf5262ffb837bd..2d9d534d6e527d0814039ca058269ab6149d7282 100644 (file)
@@ -1,10 +1,3 @@
 add_llvm_library(LLVMARMDisassembler
   ARMDisassembler.cpp
   )
-# workaround for hanging compilation on MSVC8, 9 and 10
-if( MSVC_VERSION EQUAL 1400 OR MSVC_VERSION EQUAL 1500 OR MSVC_VERSION EQUAL 1600 )
-set_property(
-  SOURCE ARMDisassembler.cpp
-  PROPERTY COMPILE_FLAGS "/Od"
-  )
-endif()
index 35b0999d0e5d00533ca1f7ede4655b746c085b7f..a64d02c47406f87721f0b30a4c9f4624fa0b0ef6 100644 (file)
@@ -1,11 +1,3 @@
 add_llvm_library(LLVMMipsDisassembler
   MipsDisassembler.cpp
   )
-
-# workaround for hanging compilation on MSVC9 and 10
-if( MSVC_VERSION EQUAL 1400 OR MSVC_VERSION EQUAL 1500 OR MSVC_VERSION EQUAL 1600 )
-set_property(
-  SOURCE MipsDisassembler.cpp
-  PROPERTY COMPILE_FLAGS "/Od"
-  )
-endif()
index f26ac02feb23b51bf9acd7ca82c54f4cbe83b80f..88e8186f33a0d26d68f811921414b04ce4af54dc 100644 (file)
@@ -41,15 +41,6 @@ set(ADTSources
   polymorphic_ptr_test.cpp
  )
 
-# They cannot be compiled on MSVC9 due to its bug.
-if(MSVC AND MSVC_VERSION LESS 1600)
-  set(LLVM_OPTIONAL_SOURCES
-    DenseMapTest.cpp
-    SmallVectorTest.cpp
-    )
-  list(REMOVE_ITEM ADTSources ${LLVM_OPTIONAL_SOURCES})
-endif()
-
 add_llvm_unittest(ADTTests
   ${ADTSources}
   )
index a597a3524a7be9e66996dab6f4c4a34aade9016a..305079f2dd84233bfcad3c6b2a961ef9edcf0c3c 100644 (file)
@@ -25,12 +25,6 @@ set(IRSources
   WaymarkTest.cpp
   )
 
-# MSVC9 and 8 cannot compile ValueMapTest.cpp due to their bug.
-# See issue#331418 in Visual Studio.
-if(MSVC AND MSVC_VERSION LESS 1600)
-  list(REMOVE_ITEM IRSources ValueMapTest.cpp)
-endif()
-
 # HACK: Declare a couple of source files as optionally compiled to satisfy the
 # missing-file-checker in LLVM's weird CMake build.
 set(LLVM_OPTIONAL_SOURCES