[llvm-commits] CVS: llvm/tools/lli/Interpreter/Execution.cpp Interpreter.h Support.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Fri Sep 5 00:05:02 PDT 2003
Changes in directory llvm/tools/lli/Interpreter:
Execution.cpp updated: 1.94 -> 1.95
Interpreter.h updated: 1.37 -> 1.38
Support.cpp (r1.7) removed
---
Log message:
Remove support for printing values from a module by name, only used
w/ interactive keyboard entry of names.
With that, Support.cpp is history.
---
Diffs of the changes:
Index: llvm/tools/lli/Interpreter/Execution.cpp
diff -u llvm/tools/lli/Interpreter/Execution.cpp:1.94 llvm/tools/lli/Interpreter/Execution.cpp:1.95
--- llvm/tools/lli/Interpreter/Execution.cpp:1.94 Thu Sep 4 23:46:26 2003
+++ llvm/tools/lli/Interpreter/Execution.cpp Fri Sep 5 00:04:32 2003
@@ -1086,20 +1086,3 @@
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";
- }
-}
Index: llvm/tools/lli/Interpreter/Interpreter.h
diff -u llvm/tools/lli/Interpreter/Interpreter.h:1.37 llvm/tools/lli/Interpreter/Interpreter.h:1.38
--- llvm/tools/lli/Interpreter/Interpreter.h:1.37 Thu Sep 4 23:46:26 2003
+++ llvm/tools/lli/Interpreter/Interpreter.h Fri Sep 5 00:04:32 2003
@@ -103,7 +103,6 @@
// User Interation Methods...
bool callFunction(const std::string &Name); // return true on failure
- void print(const std::string &Name);
static void print(const Type *Ty, GenericValue V);
static void printValue(const Type *Ty, GenericValue V);
@@ -180,20 +179,6 @@
// at, or fail silently if no program is running.
//
void printCurrentInstruction();
-
- // LookupMatchingNames - Search the current function namespace, then the
- // global namespace looking for values that match the specified name. Return
- // ALL matches to that name. This is obviously slow, and should only be used
- // for user interaction.
- //
- std::vector<Value*> LookupMatchingNames(const std::string &Name);
-
- // ChooseOneOption - Prompt the user to choose among the specified options to
- // pick one value. If no options are provided, emit an error. If a single
- // option is provided, just return that option.
- //
- Value *ChooseOneOption(const std::string &Name,
- const std::vector<Value*> &Opts);
void initializeExecutionEngine();
void initializeExternalFunctions();
More information about the llvm-commits
mailing list