[llvm-commits] CVS: llvm-gcc/gcc/llvm-expand.c
Chris Lattner
lattner at cs.uiuc.edu
Sat Nov 27 13:52:29 PST 2004
Changes in directory llvm-gcc/gcc:
llvm-expand.c updated: 1.63 -> 1.64
---
Log message:
Save 4 bytes in the llvm_goto_fixup struct but packing bit fields into bits.
Make llvm_fixup_list_dump a bit nicer.
---
Diffs of the changes: (+6 -5)
Index: llvm-gcc/gcc/llvm-expand.c
diff -u llvm-gcc/gcc/llvm-expand.c:1.63 llvm-gcc/gcc/llvm-expand.c:1.64
--- llvm-gcc/gcc/llvm-expand.c:1.63 Sat Nov 27 14:32:49 2004
+++ llvm-gcc/gcc/llvm-expand.c Sat Nov 27 15:52:17 2004
@@ -645,13 +645,13 @@
/* Information about what happens if a cleanup expression throws an exception.
See llvm_expand_goto_internal for information about this flag. */
- int CleanupsCanThrow;
+ int CleanupsCanThrow : 1;
/* Information about whether this goto is part of an exception propagation.
* If so, cleanups which are only supposed to be run on exception exits are
* expanded.
*/
- int isExceptionEdge;
+ int isExceptionEdge : 1;
/* List of cleanup expressions to be run by this goto in the current block.
* This list ONLY includes cleanups in the current block: when the current
@@ -775,10 +775,11 @@
void llvm_fixup_list_dump(llvm_function *Fn) {
llvm_goto_fixup *f = Fn->ExpandInfo->GotoFixupList;
for (; f; f = f->next) {
- fprintf(stderr, "Fixup [%p]: to bb %%%s cct: %d iee: %d cleanups: %p"
+ fprintf(stderr, "Fixup [%p]: to bb %%%s cct: %s iee: %s cleanups: %p"
" containing_block: %p\n", (void*)f, D2V(f->target_bb)->Name,
- f->CleanupsCanThrow, f->isExceptionEdge, (void*)f->cleanup_list,
- (void*)f->containing_block);
+ f->CleanupsCanThrow ? "Yes" : "No",
+ f->isExceptionEdge ? "Yes" : "No",
+ (void*)f->cleanup_list, (void*)f->containing_block);
}
}
More information about the llvm-commits
mailing list