summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-07-23 15:30:32 +0000
committerChris Lattner <sabre@nondot.org>2003-07-23 15:30:32 +0000
commit832688a6d28c6e1a5a4f869cea00941ccb93281e (patch)
tree3d23008ab75e535c59b3c3045428440e27be6c31 /lib
parent949a3628024248db01d5b13e03c415e0c88e90e4 (diff)
downloadllvm-832688a6d28c6e1a5a4f869cea00941ccb93281e.tar.gz
llvm-832688a6d28c6e1a5a4f869cea00941ccb93281e.tar.bz2
llvm-832688a6d28c6e1a5a4f869cea00941ccb93281e.tar.xz
Remove redundant const qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7254 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/ExecutionEngine/Interpreter/Execution.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp
index 44c1e48c33..84486c21ee 100644
--- a/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/lib/ExecutionEngine/Interpreter/Execution.cpp
@@ -1266,11 +1266,11 @@ void Interpreter::print(const std::string &Name) {
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(),