clang  6.0.0svn
XRayArgs.h
Go to the documentation of this file.
1 //===--- XRayArgs.h - Arguments for XRay ------------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_CLANG_DRIVER_XRAYARGS_H
10 #define LLVM_CLANG_DRIVER_XRAYARGS_H
11 
12 #include "clang/Driver/Types.h"
13 #include "llvm/Option/Arg.h"
14 #include "llvm/Option/ArgList.h"
15 
16 namespace clang {
17 namespace driver {
18 
19 class ToolChain;
20 
21 class XRayArgs {
22  std::vector<std::string> AlwaysInstrumentFiles;
23  std::vector<std::string> NeverInstrumentFiles;
24  std::vector<std::string> ExtraDeps;
25  bool XRayInstrument = false;
26  int InstructionThreshold = 200;
27  bool XRayAlwaysEmitCustomEvents = false;
28 
29 public:
30  /// Parses the XRay arguments from an argument list.
31  XRayArgs(const ToolChain &TC, const llvm::opt::ArgList &Args);
32  void addArgs(const ToolChain &TC, const llvm::opt::ArgList &Args,
33  llvm::opt::ArgStringList &CmdArgs, types::ID InputType) const;
34 };
35 
36 } // namespace driver
37 } // namespace clang
38 
39 #endif // LLVM_CLANG_DRIVER_XRAYARGS_H
void addArgs(const ToolChain &TC, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs, types::ID InputType) const
Definition: XRayArgs.cpp:94
Dataflow Directional Tag Classes.
XRayArgs(const ToolChain &TC, const llvm::opt::ArgList &Args)
Parses the XRay arguments from an argument list.
Definition: XRayArgs.cpp:32
ToolChain - Access to tools for a single platform.
Definition: ToolChain.h:73