Obliterate LLDB_CONFIGURATION_BUILDANDINTEGRATION

Summary:
With the XCode project gone, there doesn't seem to be anything setting
this macro anymore -- and the macro wasn't doing much anyway.

Reviewers: jingham, sgraenitz

Subscribers: emaste, lldb-commits

Differential Revision: https://reviews.llvm.org/D66742

llvm-svn: 371018
This commit is contained in:
Pavel Labath 2019-09-05 07:09:31 +00:00
parent c3bea40bf7
commit 7790858b00
3 changed files with 0 additions and 20 deletions

View File

@ -37,9 +37,6 @@
using namespace lldb; using namespace lldb;
using namespace lldb_private; using namespace lldb_private;
// We disable the tracing of ptrace calls for integration builds to avoid the
// additional indirection and checks.
#ifndef LLDB_CONFIGURATION_BUILDANDINTEGRATION
// Wrapper for ptrace to catch errors and log calls. // Wrapper for ptrace to catch errors and log calls.
const char *Get_PT_IO_OP(int op) { const char *Get_PT_IO_OP(int op) {
@ -137,9 +134,6 @@ extern long PtraceWrapper(int req, lldb::pid_t pid, void *addr, int data) {
#define PTRACE(req, pid, addr, data) \ #define PTRACE(req, pid, addr, data) \
PtraceWrapper((req), (pid), (addr), (data), #req, __FILE__, __LINE__) PtraceWrapper((req), (pid), (addr), (data), #req, __FILE__, __LINE__)
#else
PtraceWrapper((req), (pid), (addr), (data))
#endif
// Static implementations of ProcessMonitor::ReadMemory and // Static implementations of ProcessMonitor::ReadMemory and
// ProcessMonitor::WriteMemory. This enables mutual recursion between these // ProcessMonitor::WriteMemory. This enables mutual recursion between these

View File

@ -229,11 +229,6 @@ std::string GetCrashReasonString(CrashReason reason, lldb::addr_t fault_addr) {
} }
const char *CrashReasonAsString(CrashReason reason) { const char *CrashReasonAsString(CrashReason reason) {
#ifdef LLDB_CONFIGURATION_BUILDANDINTEGRATION
// Just return the code in ascii for integration builds.
chcar str[8];
sprintf(str, "%d", reason);
#else
const char *str = nullptr; const char *str = nullptr;
switch (reason) { switch (reason) {
@ -315,8 +310,6 @@ const char *CrashReasonAsString(CrashReason reason) {
str = "eFloatSubscriptRange"; str = "eFloatSubscriptRange";
break; break;
} }
#endif
return str; return str;
} }

View File

@ -15,11 +15,6 @@ const char *ProcessMessage::PrintCrashReason() const {
} }
const char *ProcessMessage::PrintKind(Kind kind) { const char *ProcessMessage::PrintKind(Kind kind) {
#ifdef LLDB_CONFIGURATION_BUILDANDINTEGRATION
// Just return the code in ascii for integration builds.
chcar str[8];
sprintf(str, "%d", reason);
#else
const char *str = nullptr; const char *str = nullptr;
switch (kind) { switch (kind) {
@ -60,8 +55,6 @@ const char *ProcessMessage::PrintKind(Kind kind) {
str = "eExecMessage"; str = "eExecMessage";
break; break;
} }
#endif
return str; return str;
} }