Changes from Git (git http://labmaster3.local/git/llvm-project.git)


  1. [Driver] Don't pass -u__llvm_profile_runtime for clang -fprofile-arcs a.o (details)
  2. [lldb] [testsuite] Fix dependency on external symbol files (details)
Commit 6bf0ad78dc01020c9036ad49de2e0f4d59b6def9 by maskray
[Driver] Don't pass -u__llvm_profile_runtime for clang -fprofile-arcs a.o

clang --coverage a.o       # InstrProfilingRuntime.cpp.o not linked in
clang --fprofile-arcs a.o  # InstrProfilingRuntime.cpp.o unexpectedly linked in

Fix --fprofile-arcs.
The file was modifiedclang/lib/Driver/ToolChain.cpp
The file was modifiedclang/test/Driver/coverage-ld.c
The file was modifiedclang/lib/Driver/ToolChains/Linux.cpp
The file was modifiedclang/lib/Driver/ToolChains/Darwin.cpp
Commit 68a9356bdea69dbcec1233f8b1fab47e72fca991 by jan.kratochvil
[lldb] [testsuite] Fix dependency on external symbol files

D55859 and D63339 prevented needless dependencies on system symbol
files. This testcase was checked-in afterwards and it brings back one
such unwanted dependency. Under some circumstances it may cause false
FAILs and/or excessive resource usage to run the testcase.

clang-format does not support .py so I have formatted it as I found most

Also this is not a full testcase-style initialization, for example
--no-lldbinit ignores env("NO_LLDBINIT") setting which does
  # If we spawn an lldb process for test (via pexpect), do not load the
  # init file unless told otherwise.
  if os.environ.get("NO_LLDBINIT") != "NO":
      self.lldbOption += " --no-lldbinit"

But this is what does - it also ignores
env("NO_LLDBINIT"). Sure one could also fix to unify the
initialization more with but I find that outside of the
scope of this patch.

Differential Revision:
The file was modifiedlldb/test/API/functionalities/reproducers/attach/