[llvm-commits] CVS: llvm/tools/lli/Interpreter/Execution.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Fri Sep 5 00:36:10 PDT 2003
Changes in directory llvm/tools/lli/Interpreter:
Execution.cpp updated: 1.95 -> 1.96
---
Log message:
Remove printOperandInfo(), and simplify run().
---
Diffs of the changes:
Index: llvm/tools/lli/Interpreter/Execution.cpp
diff -u llvm/tools/lli/Interpreter/Execution.cpp:1.95 llvm/tools/lli/Interpreter/Execution.cpp:1.96
--- llvm/tools/lli/Interpreter/Execution.cpp:1.95 Fri Sep 5 00:04:32 2003
+++ llvm/tools/lli/Interpreter/Execution.cpp Fri Sep 5 00:22:08 2003
@@ -107,30 +107,6 @@
}
}
-static void printOperandInfo(Value *V, ExecutionContext &SF) {
- if (isa<Constant>(V)) {
- std::cout << "Constant Pool Value\n";
- } else if (isa<GlobalValue>(V)) {
- std::cout << "Global Value\n";
- } else {
- unsigned TyP = V->getType()->getUniqueID(); // TypePlane for value
- unsigned Slot = getOperandSlot(V);
- std::cout << "Value=" << (void*)V << " TypeID=" << TyP << " Slot=" << Slot
- << " Addr=" << &SF.Values[TyP][Slot] << " SF=" << &SF
- << " Contents=0x";
-
- const unsigned char *Buf = (const unsigned char*)&SF.Values[TyP][Slot];
- for (unsigned i = 0; i < sizeof(GenericValue); ++i) {
- unsigned char Cur = Buf[i];
- std::cout << ( Cur >= 160?char((Cur>>4)+'A'-10):char((Cur>>4) + '0'))
- << ((Cur&15) >= 10?char((Cur&15)+'A'-10):char((Cur&15) + '0'));
- }
- std::cout << "\n";
- }
-}
-
-
-
static void SetValue(Value *V, GenericValue Val, ExecutionContext &SF) {
unsigned TyP = V->getType()->getUniqueID(); // TypePlane for value
@@ -138,7 +114,6 @@
SF.Values[TyP][getOperandSlot(V)] = Val;
}
-
//===----------------------------------------------------------------------===//
// Annotation Wrangling code
//===----------------------------------------------------------------------===//
@@ -1049,11 +1024,6 @@
}
void Interpreter::run() {
- if (ECStack.empty()) {
- std::cout << "Error: no program running, cannot run!\n";
- return;
- }
-
while (!ECStack.empty()) {
// Run an instruction...
executeInstruction();
More information about the llvm-commits
mailing list