summaryrefslogtreecommitdiff
path: root/lib/xray/xray_flags.cc
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2016-07-20 21:37:38 +0000
committerHans Wennborg <hans@hanshq.net>2016-07-20 21:37:38 +0000
commit3261cf3c2813d79b53997498781503eaad6dd2f7 (patch)
treed0d6bb1eadbdbf005a12965e6e571985826513de /lib/xray/xray_flags.cc
parent3aa2882179d440943c3b3750b1600039785bf7c6 (diff)
Revert r276117 "[XRay] Basic initialization and flag definition for XRay runtime"
and also the follow-up "[xray] Only build xray on Linux for now" Two build errors were reported on the llvm-commits list: [ 88%] Building CXX object lib/xray/CMakeFiles/clang_rt.xray-x86_64.dir/xray_flags.cc.o /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/lib/xray/xray_init.cc:23:10: fatal error: 'llvm/Support/ELF.h' file not found #include "llvm/Support/ELF.h" ^ and In file included from /w/src/llvm.org/projects/compiler-rt/lib/xray/xray_interface.cc:16: /w/src/llvm.org/projects/compiler-rt/lib/xray/xray_interface_internal.h:36:8: error: no type named 'size_t' in namespace 'std' std::size_t Entries; ~~~~~^ git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@276186 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/xray/xray_flags.cc')
-rw-r--r--lib/xray/xray_flags.cc61
1 files changed, 0 insertions, 61 deletions
diff --git a/lib/xray/xray_flags.cc b/lib/xray/xray_flags.cc
deleted file mode 100644
index 6f829128c..000000000
--- a/lib/xray/xray_flags.cc
+++ /dev/null
@@ -1,61 +0,0 @@
-//===-- xray_flags.cc -------------------------------------------*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// This file is a part of XRay, a dynamic runtime instrumentation system.
-//
-// XRay flag parsing logic.
-//===----------------------------------------------------------------------===//
-
-#include "xray_flags.h"
-#include "sanitizer_common/sanitizer_common.h"
-#include "sanitizer_common/sanitizer_flag_parser.h"
-#include "sanitizer_common/sanitizer_libc.h"
-
-using namespace __sanitizer;
-
-namespace __xray {
-
-Flags xray_flags_dont_use_directly; // use via flags().
-
-void Flags::SetDefaults() {
-#define XRAY_FLAG(Type, Name, DefaultValue, Description) Name = DefaultValue;
-#include "xray_flags.inc"
-#undef XRAY_FLAG
-}
-
-static void RegisterXRayFlags(FlagParser *P, Flags *F) {
-#define XRAY_FLAG(Type, Name, DefaultValue, Description) \
- RegisterFlag(P, #Name, Description, &F->Name);
-#include "xray_flags.inc"
-#undef XRAY_FLAG
-}
-
-void InitializeFlags() {
- SetCommonFlagsDefaults();
- auto *F = flags();
- F->SetDefaults();
-
- FlagParser XRayParser;
- RegisterXRayFlags(&XRayParser, F);
- RegisterCommonFlags(&XRayParser);
-
- // Override from command line.
- XRayParser.ParseString(GetEnv("XRAY_OPTIONS"));
-
- InitializeCommonFlags();
-
- if (Verbosity())
- ReportUnrecognizedFlags();
-
- if (common_flags()->help) {
- XRayParser.PrintFlagDescriptions();
- }
-}
-
-} // namespace __xray