mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-10-07 10:54:01 +00:00
[JITLink][AArch32] Remove duplicate '0x' hex prefixes from formatv strings in error messages
This commit is contained in:
parent
1025189ea0
commit
21ee9e4b26
@ -194,7 +194,7 @@ struct ArmRelocation {
|
||||
Error makeUnexpectedOpcodeError(const LinkGraph &G, const ThumbRelocation &R,
|
||||
Edge::Kind Kind) {
|
||||
return make_error<JITLinkError>(
|
||||
formatv("Invalid opcode [ 0x{0:x4}, 0x{1:x4} ] for relocation: {2}",
|
||||
formatv("Invalid opcode [ {0:x4}, {1:x4} ] for relocation: {2}",
|
||||
static_cast<uint16_t>(R.Hi), static_cast<uint16_t>(R.Lo),
|
||||
G.getEdgeKindName(Kind)));
|
||||
}
|
||||
@ -202,7 +202,7 @@ Error makeUnexpectedOpcodeError(const LinkGraph &G, const ThumbRelocation &R,
|
||||
Error makeUnexpectedOpcodeError(const LinkGraph &G, const ArmRelocation &R,
|
||||
Edge::Kind Kind) {
|
||||
return make_error<JITLinkError>(
|
||||
formatv("Invalid opcode [ 0x{0:x8} ] for relocation: {1}",
|
||||
formatv("Invalid opcode {0:x8} for relocation: {1}",
|
||||
static_cast<uint32_t>(R.Wd), G.getEdgeKindName(Kind)));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user