[llvm-commits] CVS: llvm/tools/lli/Interpreter/Execution.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Jul 23 10:31:02 PDT 2003


Changes in directory llvm/tools/lli/Interpreter:

Execution.cpp updated: 1.90 -> 1.91

---
Log message:

Remove redundant const qualifier


---
Diffs of the changes:

Index: llvm/tools/lli/Interpreter/Execution.cpp
diff -u llvm/tools/lli/Interpreter/Execution.cpp:1.90 llvm/tools/lli/Interpreter/Execution.cpp:1.91
--- llvm/tools/lli/Interpreter/Execution.cpp:1.90	Wed May 14 09:21:30 2003
+++ llvm/tools/lli/Interpreter/Execution.cpp	Wed Jul 23 10:30:32 2003
@@ -1266,11 +1266,11 @@
   Value *PickedVal = ChooseOneOption(Name, LookupMatchingNames(Name));
   if (!PickedVal) return;
 
-  if (const Function *F = dyn_cast<const Function>(PickedVal)) {
+  if (const Function *F = dyn_cast<Function>(PickedVal)) {
     CW << F;  // Print the function
-  } else if (const Type *Ty = dyn_cast<const Type>(PickedVal)) {
+  } else if (const Type *Ty = dyn_cast<Type>(PickedVal)) {
     CW << "type %" << Name << " = " << Ty->getDescription() << "\n";
-  } else if (const BasicBlock *BB = dyn_cast<const BasicBlock>(PickedVal)) {
+  } 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(), 





More information about the llvm-commits mailing list