Skip to content

Commit ca9901a

Browse files
clang-format and others
1 parent 3e2adb9 commit ca9901a

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

lldb/source/Plugins/Platform/AIX/PlatformAIX.cpp

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88

99
#include "PlatformAIX.h"
1010
#include "lldb/Host/Config.h"
11-
1211
#include <cstdio>
1312
#if LLDB_ENABLE_POSIX
1413
#include <sys/utsname.h>
1514
#endif
16-
1715
#include "Utility/ARM64_DWARF_Registers.h"
1816
#include "lldb/Core/Debugger.h"
1917
#include "lldb/Core/PluginManager.h"
@@ -28,7 +26,7 @@
2826
#include "lldb/Utility/Status.h"
2927
#include "lldb/Utility/StreamString.h"
3028

31-
// Define these constants from AIX mman.h for use when targeting remote aix
29+
// Use defined constants from AIX mman.h for use when targeting remote aix
3230
// systems even when host has different values.
3331

3432
#if defined(_AIX)
@@ -43,7 +41,6 @@ LLDB_PLUGIN_DEFINE(PlatformAIX)
4341

4442
static uint32_t g_initialize_count = 0;
4543

46-
4744
PlatformSP PlatformAIX::CreateInstance(bool force, const ArchSpec *arch) {
4845
Log *log = GetLog(LLDBLog::Platform);
4946
LLDB_LOG(log, "force = {0}, arch=({1}, {2})", force,
@@ -112,8 +109,8 @@ PlatformAIX::PlatformAIX(bool is_host)
112109
HostInfo::GetArchitecture(HostInfo::eArchKind32));
113110
}
114111
} else {
115-
m_supported_architectures = CreateArchList(
116-
llvm::Triple::AIX);
112+
m_supported_architectures =
113+
CreateArchList({llvm::Triple::ppc64}, llvm::Triple::AIX);
117114
}
118115
}
119116

@@ -196,14 +193,14 @@ void PlatformAIX::CalculateTrapHandlerSymbolNames() {
196193

197194
lldb::UnwindPlanSP
198195
PlatformAIX::GetTrapHandlerUnwindPlan(const llvm::Triple &triple,
199-
ConstString name) {
196+
ConstString name) {
200197
return {};
201198
}
202199

203-
MmapArgList PlatformAIX::GetMmapArgumentList(const ArchSpec &arch,
204-
addr_t addr, addr_t length,
205-
unsigned prot, unsigned flags,
206-
addr_t fd, addr_t offset) {
200+
MmapArgList PlatformAIX::GetMmapArgumentList(const ArchSpec &arch, addr_t addr,
201+
addr_t length, unsigned prot,
202+
unsigned flags, addr_t fd,
203+
addr_t offset) {
207204
#if defined(_AIX)
208205
unsigned flags_platform = MAP_VARIABLE | MAP_PRIVATE | MAP_ANONYMOUS;
209206
#else
@@ -259,13 +256,14 @@ CompilerType PlatformAIX::GetSiginfoType(const llvm::Triple &triple) {
259256
nullptr, OptionalClangModuleID(), lldb::eAccessPublic, "",
260257
llvm::to_underlying(clang::TagTypeKind::Union), lldb::eLanguageTypeC);
261258
ast->StartTagDeclarationDefinition(sigfault_bounds_type);
262-
ast->AddFieldToRecordType(sigfault_bounds_type, "_addr_bnd",
259+
ast->AddFieldToRecordType(
260+
sigfault_bounds_type, "_addr_bnd",
263261
ast->CreateStructForIdentifier(ConstString(),
264262
{
265263
{"_lower", voidp_type},
266264
{"_upper", voidp_type},
267265
}),
268-
lldb::eAccessPublic, 0);
266+
lldb::eAccessPublic, 0);
269267
ast->AddFieldToRecordType(sigfault_bounds_type, "_pkey", uint_type,
270268
lldb::eAccessPublic, 0);
271269
ast->CompleteTagDeclarationDefinition(sigfault_bounds_type);

lldb/source/Plugins/Platform/AIX/PlatformAIX.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class PlatformAIX : public PlatformPOSIX {
6868
std::unique_ptr<TypeSystemClang> m_type_system_up;
6969
};
7070

71-
} // namespace platform_AIX
71+
} // namespace platform_aix
7272
} // namespace lldb_private
7373

7474
#endif // LLDB_SOURCE_PLUGINS_PLATFORM_AIX_PLATFORMAIX_H

0 commit comments

Comments
 (0)