Skip to content

Commit a77dc02

Browse files
Merge pull request #4 from DhruvSrivastavaX/aix-llvm-flag
Replaced __AIX__ with LLVM's _AIX
2 parents fee4abf + a8020a6 commit a77dc02

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+74
-78
lines changed

clang/test/SemaCXX/class-layout.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ namespace PR37275 {
639639
#pragma pack(pop)
640640
}
641641

642-
#endif // !defined(__MVS__) && !defined(__AIX__)
642+
#endif // !defined(__MVS__) && !defined(_AIX)
643643

644644
namespace non_pod {
645645
struct t1 {

lldb/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ endif()
3838
include(LLDBConfig)
3939
include(AddLLDB)
4040

41-
if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
42-
add_definitions("-D__AIX__")
43-
endif()
44-
4541
# Define the LLDB_CONFIGURATION_xxx matching the build type.
4642
if(uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG" )
4743
add_definitions(-DLLDB_CONFIGURATION_DEBUG)

lldb/include/lldb/Host/HostGetOpt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#ifndef LLDB_HOST_HOSTGETOPT_H
1010
#define LLDB_HOST_HOSTGETOPT_H
1111

12-
#if !defined(_MSC_VER) && !defined(__NetBSD__) && !defined(__AIX__)
12+
#if !defined(_MSC_VER) && !defined(__NetBSD__) && !defined(_AIX)
1313

1414
#include <getopt.h>
1515
#include <unistd.h>

lldb/include/lldb/Host/HostInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
#elif defined(__APPLE__)
5656
#include "lldb/Host/macosx/HostInfoMacOSX.h"
5757
#define HOST_INFO_TYPE HostInfoMacOSX
58-
#elif defined(__AIX__)
58+
#elif defined(_AIX)
5959
#include "lldb/Host/aix/HostInfoAIX.h"
6060
#define HOST_INFO_TYPE HostInfoAIX
6161
#else

lldb/include/lldb/Host/XML.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#include "lldb/Host/Config.h"
1313

14-
#if defined(__AIX__)
14+
#if defined(_AIX)
1515
//FIXME for AIX
1616
#undef LLDB_ENABLE_LIBXML2
1717
#endif

lldb/include/lldb/Host/common/GetOptInc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
#include "lldb/lldb-defines.h"
1313

14-
#if defined(_MSC_VER) || defined(__AIX__)
14+
#if defined(_MSC_VER) || defined(_AIX)
1515
#define REPLACE_GETOPT
1616
#define REPLACE_GETOPT_LONG
1717
#endif
18-
#if defined(_MSC_VER) || defined(__NetBSD__) || defined(__AIX__)
18+
#if defined(_MSC_VER) || defined(__NetBSD__) || defined(_AIX)
1919
#define REPLACE_GETOPT_LONG_ONLY
2020
#endif
2121

lldb/include/lldb/Target/Process.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
#include "llvm/Support/Threading.h"
6666
#include "llvm/Support/VersionTuple.h"
6767

68-
#if defined(__AIX__)
68+
#if defined(_AIX)
6969
struct ld_xinfo;
7070
#endif
7171

@@ -1884,7 +1884,7 @@ class Process : public std::enable_shared_from_this<Process>,
18841884
Status GetMemoryRegionInfo(lldb::addr_t load_addr,
18851885
MemoryRegionInfo &range_info);
18861886

1887-
#if defined(__AIX__)
1887+
#if defined(_AIX)
18881888
Status GetLDXINFO(struct ld_xinfo *info_ptr);
18891889
#endif
18901890

@@ -2823,7 +2823,7 @@ void PruneThreadPlans();
28232823
"Process::DoGetMemoryRegionInfo() not supported");
28242824
}
28252825

2826-
#if defined(__AIX__)
2826+
#if defined(_AIX)
28272827
virtual Status DoGetLDXINFO(struct ld_xinfo *info_ptr) {
28282828
return Status("Process::DoGetLDXINFO() not supported");
28292829
}

lldb/include/lldb/Target/RegisterContextUnwind.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class RegisterContextUnwind : public lldb_private::RegisterContext {
6767

6868
bool ReadPC(lldb::addr_t &start_pc);
6969

70-
#ifdef __AIX__
70+
#ifdef _AIX
7171
bool ReadLR(lldb::addr_t &lr);
7272
#endif
7373

lldb/source/Core/Mangled.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ static char *GetItaniumDemangledStr(const char *M) {
167167
"Expected demangled_size to return length including trailing null");
168168
}
169169

170-
#if !defined(__AIX__)
170+
#if !defined(_AIX)
171171
if (Log *log = GetLog(LLDBLog::Demangle)) {
172172
if (demangled_cstr)
173173
LLDB_LOGF(log, "demangled itanium: %s -> \"%s\"", M, demangled_cstr);

lldb/source/Core/Section.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ bool Section::ResolveContainedAddress(addr_t offset, Address &so_addr,
263263

264264
bool Section::ContainsFileAddress(addr_t vm_addr) const {
265265
const addr_t file_addr = GetFileAddress();
266-
#ifdef __AIX__
266+
#ifdef _AIX
267267
if (file_addr == 0)
268268
return false;
269269
#endif

0 commit comments

Comments
 (0)