Skip to content
  1. May 11, 2020
    • Lang Hames's avatar
      [ORC] Share ownership of JITDylibs between ExecutionSession and · 41379f1e
      Lang Hames authored
      MaterializationResponsibility.
      
      MaterializationResponsibility objects provide a connection between a
      materialization process (compiler, jit linker, etc.) and the JIT state held in
      the ExecutionSession and JITDylib objects. Switching to shared ownership
      extends the lifetime of JITDylibs to ensure they remain accessible until all
      materializers targeting them have completed. This will allow (in a follow-up
      patch) JITDylibs to be removed from the ExecutionSession and placed in a
      pending-destruction state while they are kept alive to communicate errors
      to/from any still-runnning materialization processes. The intent is to enable
      JITDylibs to be safely removed even if they have running compiles targeting
      them.
      41379f1e
    • Fangrui Song's avatar
      [gcov] Default coverage version to '407*' and delete CC1 option -coverage-cfg-checksum · 25544ce2
      Fangrui Song authored
      Defaulting to -Xclang -coverage-version='407*' makes .gcno/.gcda
      compatible with gcov [4.7,8)
      
      In addition, delete clang::CodeGenOptionsBase::CoverageExtraChecksum and GCOVOptions::UseCfgChecksum.
      We can infer the information from the version.
      
      With this change, .gcda files produced by `clang --coverage a.o` linked executable can be read by gcov 4.7~7.
      We don't need other -Xclang -coverage* options.
      There may be a mismatching version warning, though.
      
      (Note, GCC r173147 "split checksum into cfg checksum and line checksum"
       made gcov 4.7 incompatible with previous versions.)
      25544ce2
  2. May 10, 2020
Loading