summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-01 16:18:37 +0000
committerChris Lattner <sabre@nondot.org>2001-10-01 16:18:37 +0000
commit4b717c0edc082166e85181fa70e76b17669aebe2 (patch)
tree2f9e2828d1baeba95c31078d9181478d54ad37b9 /llvm/lib/ExecutionEngine/Interpreter
parent222b1f5775cfe38e3fc10dbf06e3e88b20b1c88f (diff)
downloadbcm5719-llvm-4b717c0edc082166e85181fa70e76b17669aebe2.tar.gz
bcm5719-llvm-4b717c0edc082166e85181fa70e76b17669aebe2.zip
Add support for new style casts
llvm-svn: 694
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Execution.cpp2
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
index ff4e037ce2d..3ecc3ec0eab 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
@@ -810,7 +810,7 @@ void Interpreter::printValue(const string &Name) {
Value *PickedVal = ChooseOneOption(Name, LookupMatchingNames(Name));
if (!PickedVal) return;
- if (const Method *M = PickedVal->castMethod()) {
+ if (const Method *M = dyn_cast<const Method>(PickedVal)) {
cout << M; // Print the method
} else { // Otherwise there should be an annotation for the slot#
printValue(PickedVal->getType(),
diff --git a/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp b/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp
index 508bd4a3246..eb5725feddc 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp
@@ -144,7 +144,7 @@ bool Interpreter::callMethod(const string &Name) {
if (PickedMeth == 0)
return true;
- Method *M = PickedMeth->castMethodAsserting();
+ Method *M = cast<Method>(PickedMeth);
vector<GenericValue> Args;
// TODO, get args from user...
OpenPOWER on IntegriCloud