llvm.org GIT mirror llvm / db37e40
Change loops to derive the number of tables automatically git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128818 91177308-0d34-0410-b5e6-96231b3b80d8 Joerg Sonnenberger 9 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
266266 DisassemblerTables::DisassemblerTables() {
267267 unsigned i;
268268
269 for (i = 0; i < 4; i++) {
269 for (i = 0; i < sizeof(Tables) / sizeof(Tables[0]); i++) {
270270 Tables[i] = new ContextDecision;
271271 memset(Tables[i], 0, sizeof(ContextDecision));
272272 }
277277 DisassemblerTables::~DisassemblerTables() {
278278 unsigned i;
279279
280 for (i = 0; i < 4; i++)
280 for (i = 0; i < sizeof(Tables) / sizeof(Tables[0]); i++)
281281 delete Tables[i];
282282 }
283283