]> granicus.if.org Git - clang/commit
[XRay][clang] Consolidate runtime and link-time flag processing (NFC)
authorDean Michael Berris <dberris@google.com>
Fri, 6 Apr 2018 03:53:04 +0000 (03:53 +0000)
committerDean Michael Berris <dberris@google.com>
Fri, 6 Apr 2018 03:53:04 +0000 (03:53 +0000)
commit20a40c8ec9513fc4379ef87ba28600fd12c56abe
treef0fb768671ddd0d5ebb5bb56d424a46015fa4b6c
parent451943aa7f8b14fe721431d1ce59e0de34afbe61
[XRay][clang] Consolidate runtime and link-time flag processing (NFC)

Summary:
This change fixes http://llvm.org/PR36985 to define a single place in
CommonArgs.{h,cpp} where XRay runtime flags and link-time dependencies
are processed for all toolchains that support XRay instrumentation. This
is a refactoring of the same functionality spread across multiple
toolchain definitions.

Reviewers: echristo, devnexen, eizan

Reviewed By: eizan

Subscribers: emaste, cfe-commits

Differential Revision: https://reviews.llvm.org/D45243

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@329372 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/XRayArgs.h
lib/Driver/ToolChains/CommonArgs.cpp
lib/Driver/ToolChains/CommonArgs.h
lib/Driver/ToolChains/FreeBSD.cpp
lib/Driver/ToolChains/Gnu.cpp
lib/Driver/ToolChains/OpenBSD.cpp