diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-09-05 05:22:08 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-09-05 05:22:08 +0000 |
commit | 33d98aebe72e3df15a4a133d2e3b57285d960fe7 (patch) | |
tree | d5fdd83a38778699587e712657a25ccdc5a36047 /llvm/lib/ExecutionEngine/Interpreter | |
parent | 20b98d2c938149f3675a45863173e30f56ceb81b (diff) | |
download | bcm5719-llvm-33d98aebe72e3df15a4a133d2e3b57285d960fe7.tar.gz bcm5719-llvm-33d98aebe72e3df15a4a133d2e3b57285d960fe7.zip |
Remove printOperandInfo(), and simplify run().
llvm-svn: 8362
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp index 800a62cc8db..80a0677a37e 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -107,30 +107,6 @@ static GenericValue getOperandValue(Value *V, ExecutionContext &SF) { } } -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 @@ static void SetValue(Value *V, GenericValue Val, ExecutionContext &SF) { SF.Values[TyP][getOperandSlot(V)] = Val; } - //===----------------------------------------------------------------------===// // Annotation Wrangling code //===----------------------------------------------------------------------===// @@ -1049,11 +1024,6 @@ void Interpreter::executeInstruction() { } void Interpreter::run() { - if (ECStack.empty()) { - std::cout << "Error: no program running, cannot run!\n"; - return; - } - while (!ECStack.empty()) { // Run an instruction... executeInstruction(); |