summaryrefslogtreecommitdiffstats
path: root/lldb/utils/TableGen/LLDBTableGen.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-07-23 17:23:36 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-07-23 17:23:36 +0000
commit6491076ec6800f54a8b1d09a95566b36db00f99d (patch)
treefaee8f559629a7acaf38aac7d03522cfe49b7d3e /lldb/utils/TableGen/LLDBTableGen.cpp
parent6f13637a3e130980456f37647f7628aa7fa7a2b6 (diff)
downloadbcm5719-llvm-6491076ec6800f54a8b1d09a95566b36db00f99d.tar.gz
bcm5719-llvm-6491076ec6800f54a8b1d09a95566b36db00f99d.zip
[Utils] Remove legacy scripts
As pointed out by Nathan in D65155, these scrips don't seem to serve any real need anymore. llvm-svn: 366827
Diffstat (limited to 'lldb/utils/TableGen/LLDBTableGen.cpp')
-rw-r--r--lldb/utils/TableGen/LLDBTableGen.cpp71
1 files changed, 0 insertions, 71 deletions
diff --git a/lldb/utils/TableGen/LLDBTableGen.cpp b/lldb/utils/TableGen/LLDBTableGen.cpp
deleted file mode 100644
index 9325fe03856..00000000000
--- a/lldb/utils/TableGen/LLDBTableGen.cpp
+++ /dev/null
@@ -1,71 +0,0 @@
-//===- TableGen.cpp - Top-Level TableGen implementation for Clang ---------===//
-//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-//
-//===----------------------------------------------------------------------===//
-//
-// This file contains the main function for Clang's TableGen.
-//
-//===----------------------------------------------------------------------===//
-
-#include "LLDBTableGenBackends.h" // Declares all backends.
-#include "llvm/Support/CommandLine.h"
-#include "llvm/Support/PrettyStackTrace.h"
-#include "llvm/Support/Signals.h"
-#include "llvm/TableGen/Error.h"
-#include "llvm/TableGen/Main.h"
-#include "llvm/TableGen/Record.h"
-
-using namespace llvm;
-using namespace lldb_private;
-
-enum ActionType {
- PrintRecords,
- DumpJSON,
- GenOptionDefs,
-};
-
-static cl::opt<ActionType>
- Action(cl::desc("Action to perform:"),
- cl::values(clEnumValN(PrintRecords, "print-records",
- "Print all records to stdout (default)"),
- clEnumValN(DumpJSON, "dump-json",
- "Dump all records as machine-readable JSON"),
- clEnumValN(GenOptionDefs, "gen-lldb-option-defs",
- "Generate clang attribute clases")));
-
-static bool LLDBTableGenMain(raw_ostream &OS, RecordKeeper &Records) {
- switch (Action) {
- case PrintRecords:
- OS << Records; // No argument, dump all contents
- break;
- case DumpJSON:
- EmitJSON(Records, OS);
- break;
- case GenOptionDefs:
- EmitOptionDefs(Records, OS);
- break;
- }
- return false;
-}
-
-int main(int argc, char **argv) {
- sys::PrintStackTraceOnErrorSignal(argv[0]);
- PrettyStackTraceProgram X(argc, argv);
- cl::ParseCommandLineOptions(argc, argv);
-
- llvm_shutdown_obj Y;
-
- return TableGenMain(argv[0], &LLDBTableGenMain);
-}
-
-#ifdef __has_feature
-#if __has_feature(address_sanitizer)
-#include <sanitizer/lsan_interface.h>
-// Disable LeakSanitizer for this binary as it has too many leaks that are not
-// very interesting to fix. See compiler-rt/include/sanitizer/lsan_interface.h .
-int __lsan_is_turned_off() { return 1; }
-#endif // __has_feature(address_sanitizer)
-#endif // defined(__has_feature)
OpenPOWER on IntegriCloud