Skip to content

[BOLT] Allow to compile with MSVC #151189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions bolt/lib/Core/Relocation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1018,15 +1018,15 @@ void Relocation::print(raw_ostream &OS) const {
OS << "RType:" << Twine::utohexstr(Type);
break;

case Triple::aarch64:
case Triple::aarch64: {
static const char *const AArch64RelocNames[] = {
#define ELF_RELOC(name, value) #name,
#include "llvm/BinaryFormat/ELFRelocs/AArch64.def"
#undef ELF_RELOC
};
assert(Type < ArrayRef(AArch64RelocNames).size());
OS << AArch64RelocNames[Type];
break;
} break;

case Triple::riscv64:
// RISC-V relocations are not sequentially numbered so we cannot use an
Expand All @@ -1043,15 +1043,15 @@ void Relocation::print(raw_ostream &OS) const {
}
break;

case Triple::x86_64:
case Triple::x86_64: {
static const char *const X86RelocNames[] = {
#define ELF_RELOC(name, value) #name,
#include "llvm/BinaryFormat/ELFRelocs/x86_64.def"
#undef ELF_RELOC
};
assert(Type < ArrayRef(X86RelocNames).size());
OS << X86RelocNames[Type];
break;
} break;
}
OS << ", 0x" << Twine::utohexstr(Offset);
if (Symbol) {
Expand Down
Loading