[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)
commit7fc737a2472996609a855c2b8951b4a327d13d69
tree19796bf599d1bfa51d81acd57728dfd919eb9b51
parentbd200b9ff64715624006e1495fc7e899739e4950
[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

llvm-svn: 329989
clang/lib/Driver/XRayArgs.cpp
clang/test/Driver/XRay/xray-mode-flags.cpp