projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added more helper functions for binary instructions emulating
[oota-llvm.git]
/
lib
/
VMCore
/
Instruction.cpp
diff --git
a/lib/VMCore/Instruction.cpp
b/lib/VMCore/Instruction.cpp
index 3bc642b6376d01d32755c5e016a9721355c3f180..e6ff3d28d2d1321bb42bf575493364fb528ed705 100644
(file)
--- a/
lib/VMCore/Instruction.cpp
+++ b/
lib/VMCore/Instruction.cpp
@@
-30,14
+30,11
@@
void Instruction::setName(const std::string &name, SymbolTable *ST) {
const char *Instruction::getOpcodeName(unsigned OpCode) {
switch (OpCode) {
// Terminators
const char *Instruction::getOpcodeName(unsigned OpCode) {
switch (OpCode) {
// Terminators
- case Ret: return "ret";
- case Br: return "br";
+ case Ret:
return "ret";
+ case Br:
return "br";
case Switch: return "switch";
case Invoke: return "invoke";
case Switch: return "switch";
case Invoke: return "invoke";
- // Standard unary operators...
- case Not: return "not";
-
// Standard binary operators...
case Add: return "add";
case Sub: return "sub";
// Standard binary operators...
case Add: return "add";
case Sub: return "sub";