Skip to content

Commit 9de6008

Browse files
committed
Change two remaining HexPairs with HexBytes
Created using spr 1.3.5-bogner
1 parent 89c2bc7 commit 9de6008

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/tools/llvm-mc/Disassembler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static bool SkipToToken(StringRef &Str) {
9696
}
9797

9898
static bool byteArrayFromString(ByteArrayTy &ByteArray, StringRef &Str,
99-
SourceMgr &SM, bool HexPairs) {
99+
SourceMgr &SM, bool HexBytes) {
100100
while (SkipToToken(Str)) {
101101
// Handled by higher level
102102
if (Str[0] == '[' || Str[0] == ']')
@@ -108,7 +108,7 @@ static bool byteArrayFromString(ByteArrayTy &ByteArray, StringRef &Str,
108108

109109
// Convert to a byte and add to the byte vector.
110110
unsigned ByteVal;
111-
if (HexPairs) {
111+
if (HexBytes) {
112112
if (Next < 2) {
113113
SM.PrintMessage(SMLoc::getFromPointer(Value.data()),
114114
SourceMgr::DK_Error, "expected two hex digits");

llvm/tools/llvm-mc/Disassembler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Disassembler {
3232
static int disassemble(const Target &T, const std::string &Triple,
3333
MCSubtargetInfo &STI, MCStreamer &Streamer,
3434
MemoryBuffer &Buffer, SourceMgr &SM, MCContext &Ctx,
35-
const MCTargetOptions &MCOptions, bool HexPairs);
35+
const MCTargetOptions &MCOptions, bool HexBytes);
3636
};
3737

3838
} // namespace llvm

0 commit comments

Comments
 (0)