aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/Interpreter/Execution.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r--lib/ExecutionEngine/Interpreter/Execution.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp
index 6881ff9ed7..800a62cc8d 100644
--- a/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/lib/ExecutionEngine/Interpreter/Execution.cpp
@@ -1086,20 +1086,3 @@ void Interpreter::print(const Type *Ty, GenericValue V) {
CW << Ty << " ";
printValue(Ty, V);
}
-
-void Interpreter::print(const std::string &Name) {
- Value *PickedVal = ChooseOneOption(Name, LookupMatchingNames(Name));
- if (!PickedVal) return;
-
- if (const Function *F = dyn_cast<Function>(PickedVal)) {
- CW << F; // Print the function
- } else if (const Type *Ty = dyn_cast<Type>(PickedVal)) {
- CW << "type %" << Name << " = " << Ty->getDescription() << "\n";
- } else if (const BasicBlock *BB = dyn_cast<BasicBlock>(PickedVal)) {
- CW << BB; // Print the basic block
- } else { // Otherwise there should be an annotation for the slot#
- print(PickedVal->getType(),
- getOperandValue(PickedVal, ECStack[CurFrame]));
- std::cout << "\n";
- }
-}