brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 08fe7b2 Raw
35 lines · cpp
1//===-- cli-wrapper.cpp -----------------------------------------*- C++ -*-===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7// CLI Wrapper for hardware features of Intel(R) architecture based processors8// to enable them to be used through LLDB's CLI. For details, please refer to9// cli wrappers of each individual feature, residing in their respective10// folders.11//12// Compile this into a shared lib and load by placing at appropriate locations13// on disk or by using "plugin load" command at the LLDB command line.14//15//===----------------------------------------------------------------------===//16 17#ifdef BUILD_INTEL_MPX18#include "intel-mpx/cli-wrapper-mpxtable.h"19#endif20 21#include "lldb/API/SBDebugger.h"22 23namespace lldb {24bool PluginInitialize(lldb::SBDebugger debugger);25}26 27bool lldb::PluginInitialize(lldb::SBDebugger debugger) {28 29#ifdef BUILD_INTEL_MPX30  MPXPluginInitialize(debugger);31#endif32 33  return true;34}35