1. Nov 06, 2020
  2. Nov 05, 2020
    • Raphael Isemann's avatar
      [lldb] Set the default architecture also in buildDefault · b9b5f12b
      Raphael Isemann authored
      In D89056 the default value for architecture was moved to `build` so that
      all called functions see the same architecture value. It seems there are a
      few functions that call buildDefault directly (and not via build), so
      on some test configurations that set a custom arch value the architecture
      value is no longer available.
      
      This just adds the architecture code from build to buildDefault to get
      the bots green again while I'm looking for a better solution.
      b9b5f12b
    • Erich Keane's avatar
      Implement Lambda Conversion Operators for All CCs for MSVC. · 6b104ea4
      Erich Keane authored
      As described here:
      https://devblogs.microsoft.com/oldnewthing/20150220-00/?p=44623
      
      In order to allow Lambdas to be used with traditional Win32 APIs, they
      emit a conversion function for (what Raymond Chen claims is all) a
      number of the calling conventions.  Through experimentation, we
      discovered that the list isn't quite 'all'.
      
      This patch implements this by taking the list of conversions that MSVC
      emits (across 'all' architectures, I don't see any CCs on ARM), then
      emits them if they are supported by the current target.
      
      However, we also add 3 other options (which may be duplicates):
      free-function, member-function, and operator() calling conventions.  We
      do this because we have an extension where we generate both free and
      member for these cases so th at people specifying a calling convention
      on the lambda will have the expected behavior when specifying one of
      those two.
      
      MSVC doesn't seem to permit specifying calling-convention on lambdas,
      but we do, so we need to make sure those are emitted as well. We do this
      so that clang-only conventions are supported if the user specifies them.
      
      Differential Revision: https://reviews.llvm.org/D90634
      6b104ea4