summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSean Silva <silvas@purdue.edu>2012-10-05 03:31:58 +0000
committerSean Silva <silvas@purdue.edu>2012-10-05 03:31:58 +0000
commit736ceace11249da645ec4ed91b8714832193ead4 (patch)
treeab9c91b06c5f1cb4669f52de8616c2ba73428ebc /include
parent89adeb225db4cd4d5c671d2ac5e2e6a6e755b5bc (diff)
downloadllvm-736ceace11249da645ec4ed91b8714832193ead4.tar.gz
llvm-736ceace11249da645ec4ed91b8714832193ead4.tar.bz2
llvm-736ceace11249da645ec4ed91b8714832193ead4.tar.xz
tblgen: Replace uses of dynamic_cast<XXXRecTy> with dyn_cast<>.
This is a mechanical change of dynamic_cast<> to dyn_cast<>. A number of these uses are actually more like isa<> or cast<>, and will be changed to the semanticaly appropriate one in a future patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165291 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/TableGen/Record.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/TableGen/Record.h b/include/llvm/TableGen/Record.h
index a4ec9665c6..0e75cf4289 100644
--- a/include/llvm/TableGen/Record.h
+++ b/include/llvm/TableGen/Record.h
@@ -1085,9 +1085,9 @@ class VarBitInit : public Init {
VarBitInit(TypedInit *T, unsigned B) : TI(T), Bit(B) {
assert(T->getType() &&
- (dynamic_cast<IntRecTy*>(T->getType()) ||
- (dynamic_cast<BitsRecTy*>(T->getType()) &&
- dynamic_cast<BitsRecTy*>(T->getType())->getNumBits() > B)) &&
+ (dyn_cast<IntRecTy>(T->getType()) ||
+ (dyn_cast<BitsRecTy>(T->getType()) &&
+ dyn_cast<BitsRecTy>(T->getType())->getNumBits() > B)) &&
"Illegal VarBitInit expression!");
}
@@ -1120,9 +1120,9 @@ class VarListElementInit : public TypedInit {
unsigned Element;
VarListElementInit(TypedInit *T, unsigned E)
- : TypedInit(dynamic_cast<ListRecTy*>(T->getType())->getElementType()),
+ : TypedInit(dyn_cast<ListRecTy>(T->getType())->getElementType()),
TI(T), Element(E) {
- assert(T->getType() && dynamic_cast<ListRecTy*>(T->getType()) &&
+ assert(T->getType() && dyn_cast<ListRecTy>(T->getType()) &&
"Illegal VarBitInit expression!");
}