llvm.org GIT mirror llvm / 1548b86
remove a couple of asserts that use RTTI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94068 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 10 years ago
3 changed file(s) with 1 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
174174 AlignOf::Alignment));
175175 MFInfo = new (Loc) Ty(*this);
176176 }
177
178 assert((void*)dynamic_cast(MFInfo) == (void*)MFInfo &&
179 "Invalid concrete type or multiple inheritence for getInfo");
180177 return static_cast(MFInfo);
181178 }
182179
175175 Ty &getObjFileInfo() {
176176 if (ObjFileMMI == 0)
177177 ObjFileMMI = new Ty(*this);
178
179 assert((void*)dynamic_cast(ObjFileMMI) == (void*)ObjFileMMI &&
180 "Invalid concrete type or multiple inheritence for getInfo");
181178 return *static_cast(ObjFileMMI);
182179 }
183180
136136 /// TargetSubtarget. In debug builds, it verifies that the object being
137137 /// returned is of the correct type.
138138 template const STC &getSubtarget() const {
139 const TargetSubtarget *TST = getSubtargetImpl();
140 assert(TST && dynamic_cast(TST) &&
141 "Not the right kind of subtarget!");
142 return *static_cast(TST);
139 return *static_cast(getSubtargetImpl());
143140 }
144141
145142 /// getRegisterInfo - If register information is available, return it. If