aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp
diff options
context:
space:
mode:
authorJF Bastien <jfb@google.com>2015-08-24 22:07:33 +0000
committerJF Bastien <jfb@google.com>2015-08-24 22:07:33 +0000
commit19c2e6634de882c2f146d278b49adb2952d7d104 (patch)
treeec3b72502a794c9c8c32a6475e3d26e8b174e55c /llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp
parent5cd113df01a3e58625d71c4363b211951a1abc9c (diff)
downloadllvm-19c2e6634de882c2f146d278b49adb2952d7d104.zip
llvm-19c2e6634de882c2f146d278b49adb2952d7d104.tar.gz
llvm-19c2e6634de882c2f146d278b49adb2952d7d104.tar.bz2
Revert two bad commits.
Summary: I forgot to squash git commits before doing an svn dcommit of D12219. Reverting, and re-submitting. Subscribers: jfb, llvm-commits Differential Revision: http://reviews.llvm.org/D12298 llvm-svn: 245886
Diffstat (limited to 'llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp b/llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp
index cbd2f7d..0c5792c 100644
--- a/llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp
+++ b/llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp
@@ -44,16 +44,3 @@ void WebAssemblyInstPrinter::printInst(const MCInst *MI, raw_ostream &OS,
printInstruction(MI, OS);
printAnnotation(OS, Annot);
}
-
-void WebAssemblyInstPrinter::printOperand(const MCInst *MI, unsigned OpNo,
- raw_ostream &O) {
- const MCOperand &Op = MI->getOperand(OpNo);
- if (Op.isReg())
- O << getRegisterName(Op.getReg());
- else if (Op.isImm())
- O << '#' << Op.getImm();
- else {
- assert(Op.isExpr() && "unknown operand kind in printOperand");
- Op.getExpr()->print(O, &MAI);
- }
-}