diff options
author | Dan Gohman <dan433584@gmail.com> | 2015-11-29 22:32:02 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2015-11-29 22:32:02 +0000 |
commit | 7a6b9825cea828916c9f23293f167473b6a61d4e (patch) | |
tree | c14bc0ecae09bd2b93368ce290335adea37800dd /llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp | |
parent | b67076c0f85992b825d704889e0662753b54580d (diff) | |
download | bcm5719-llvm-7a6b9825cea828916c9f23293f167473b6a61d4e.tar.gz bcm5719-llvm-7a6b9825cea828916c9f23293f167473b6a61d4e.zip |
[WebAssembly] Minor clang-format and selected clang-tidy cleanups. NFC.
llvm-svn: 254267
Diffstat (limited to 'llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp b/llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp index d5ffcbb411a..9b94806c953 100644 --- a/llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp +++ b/llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp @@ -13,9 +13,9 @@ //===----------------------------------------------------------------------===// #include "InstPrinter/WebAssemblyInstPrinter.h" +#include "MCTargetDesc/WebAssemblyMCTargetDesc.h" #include "WebAssembly.h" #include "WebAssemblyMachineFunctionInfo.h" -#include "MCTargetDesc/WebAssemblyMCTargetDesc.h" #include "llvm/MC/MCExpr.h" #include "llvm/MC/MCInst.h" #include "llvm/MC/MCInstrInfo.h" @@ -45,7 +45,7 @@ void WebAssemblyInstPrinter::printRegName(raw_ostream &OS, void WebAssemblyInstPrinter::printInst(const MCInst *MI, raw_ostream &OS, StringRef Annot, - const MCSubtargetInfo &STI) { + const MCSubtargetInfo & /*STI*/) { printInstruction(MI, OS); const MCInstrDesc &Desc = MII.get(MI->getOpcode()); @@ -99,11 +99,20 @@ void WebAssemblyInstPrinter::printOperand(const MCInst *MI, unsigned OpNo, case WebAssembly::RESULT: case WebAssembly::LOCAL: switch (Op.getImm()) { - case MVT::i32: O << "i32"; break; - case MVT::i64: O << "i64"; break; - case MVT::f32: O << "f32"; break; - case MVT::f64: O << "f64"; break; - default: llvm_unreachable("unexpected type"); + case MVT::i32: + O << "i32"; + break; + case MVT::i64: + O << "i64"; + break; + case MVT::f32: + O << "f32"; + break; + case MVT::f64: + O << "f64"; + break; + default: + llvm_unreachable("unexpected type"); } break; default: |