[XRay][clang] Make -fxray-modes= additive
authorDean Michael Berris <dberris@google.com>
Fri, 13 Apr 2018 05:59:57 +0000 (05:59 +0000)
committerDean Michael Berris <dberris@google.com>
Fri, 13 Apr 2018 05:59:57 +0000 (05:59 +0000)
commitfcc3a5bb7667b67c51879a1df2d45bae56a70354
treebe0c55589cc83050438dec11280ec71e10a80ae4
parenta50e57f11bc27237bfa967fdc2835b0941972f9b
[XRay][clang] Make -fxray-modes= additive

Summary:
This allows us to do the following:

  clang -fxray-modes=none ... -fxray-modes=xray-basic

It's important to be able to do this in cases where we'd like to
specialise the configuration for the invocation of the compiler, in
various scripting environments.

This is related to llvm.org/PR37066, a follow-up to D45474.

Reviewers: eizan, kpw, pelikan

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@329989 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/XRayArgs.cpp
test/Driver/XRay/xray-mode-flags.cpp