diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-11-10 18:11:10 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-11-10 18:11:10 +0000 |
| commit | 4aa6bea7a2d79ddbb0023baaa7ce5009d1f6dfbd (patch) | |
| tree | 62ea0ca2dbca372d6a5b2c2f3e134ead9085dd25 /llvm/lib/Target/AArch64/Disassembler | |
| parent | 94794d08b94a8329d3f833ef0d2ac01938dd9cce (diff) | |
| download | bcm5719-llvm-4aa6bea7a2d79ddbb0023baaa7ce5009d1f6dfbd.tar.gz bcm5719-llvm-4aa6bea7a2d79ddbb0023baaa7ce5009d1f6dfbd.zip | |
Misc style fixes. NFC.
This fixes a few cases of:
* Wrong variable name style.
* Lines longer than 80 columns.
* Repeated names in comments.
* clang-format of the above.
This make the next patch a lot easier to read.
llvm-svn: 221615
Diffstat (limited to 'llvm/lib/Target/AArch64/Disassembler')
| -rw-r--r-- | llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp | 20 | ||||
| -rw-r--r-- | llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.h | 7 |
2 files changed, 13 insertions, 14 deletions
diff --git a/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp b/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp index f522ca59a9a..ebdca907d64 100644 --- a/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp +++ b/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp @@ -200,26 +200,26 @@ static MCDisassembler *createAArch64Disassembler(const Target &T, } DecodeStatus AArch64Disassembler::getInstruction(MCInst &MI, uint64_t &Size, - const MemoryObject &Region, - uint64_t Address, - raw_ostream &os, - raw_ostream &cs) const { - CommentStream = &cs; + const MemoryObject &Region, + uint64_t Address, + raw_ostream &OS, + raw_ostream &CS) const { + CommentStream = &CS; - uint8_t bytes[4]; + uint8_t Bytes[4]; Size = 0; // We want to read exactly 4 bytes of data. - if (Region.readBytes(Address, 4, (uint8_t *)bytes) == -1) + if (Region.readBytes(Address, 4, Bytes) == -1) return Fail; Size = 4; // Encoded as a small-endian 32-bit word in the stream. - uint32_t insn = - (bytes[3] << 24) | (bytes[2] << 16) | (bytes[1] << 8) | (bytes[0] << 0); + uint32_t Insn = + (Bytes[3] << 24) | (Bytes[2] << 16) | (Bytes[1] << 8) | (Bytes[0] << 0); // Calling the auto-generated decoder function. - return decodeInstruction(DecoderTable32, MI, insn, Address, this, STI); + return decodeInstruction(DecoderTable32, MI, Insn, Address, this, STI); } static MCSymbolizer * diff --git a/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.h b/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.h index 612b05b7878..84942caac24 100644 --- a/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.h +++ b/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.h @@ -28,11 +28,10 @@ public: ~AArch64Disassembler() {} - /// getInstruction - See MCDisassembler. MCDisassembler::DecodeStatus - getInstruction(MCInst &instr, uint64_t &size, const MemoryObject ®ion, - uint64_t address, raw_ostream &vStream, - raw_ostream &cStream) const override; + getInstruction(MCInst &Instr, uint64_t &Size, const MemoryObject &Segion, + uint64_t Address, raw_ostream &VStream, + raw_ostream &CStream) const override; }; } // namespace llvm |

