summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86CodeEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-07 05:19:29 +0000
committerChris Lattner <sabre@nondot.org>2008-01-07 05:19:29 +0000
commitf376c99ea046718e8ef9a9d73960888eb763afed (patch)
tree5f10d2263da2bff78ec7371e1308b5ff2d2f7ed8 /llvm/lib/Target/X86/X86CodeEmitter.cpp
parentfd548c96ccad6ade17b3aa8b594e4e00bb9a0ed4 (diff)
downloadbcm5719-llvm-f376c99ea046718e8ef9a9d73960888eb763afed.tar.gz
bcm5719-llvm-f376c99ea046718e8ef9a9d73960888eb763afed.zip
rename hasVariableOperands() -> isVariadic(). Add some comments.
Evan, please review the comments I added to getNumDefs to make sure that they are accurate, thx. llvm-svn: 45687
Diffstat (limited to 'llvm/lib/Target/X86/X86CodeEmitter.cpp')
-rw-r--r--llvm/lib/Target/X86/X86CodeEmitter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86CodeEmitter.cpp b/llvm/lib/Target/X86/X86CodeEmitter.cpp
index c4461a751a1..d25ede168d8 100644
--- a/llvm/lib/Target/X86/X86CodeEmitter.cpp
+++ b/llvm/lib/Target/X86/X86CodeEmitter.cpp
@@ -799,6 +799,5 @@ void Emitter::emitInstruction(const MachineInstr &MI,
break;
}
- assert((Desc->Flags & M_VARIABLE_OPS) != 0 ||
- CurOp == NumOps && "Unknown encoding!");
+ assert((Desc->isVariadic() || CurOp == NumOps) && "Unknown encoding!");
}
OpenPOWER on IntegriCloud