[llvm-commits] CVS: llvm-gcc/gcc/llvm-representation.h

Chris Lattner lattner at cs.uiuc.edu
Sat Nov 27 15:00:58 PST 2004



Changes in directory llvm-gcc/gcc:

llvm-representation.h updated: 1.10 -> 1.11
---
Log message:

Shrink globals by 4 bytes, add flags to keep track of whether we have called
MarkNameAsUsed for the symbol yet.


---
Diffs of the changes:  (+6 -4)

Index: llvm-gcc/gcc/llvm-representation.h
diff -u llvm-gcc/gcc/llvm-representation.h:1.10 llvm-gcc/gcc/llvm-representation.h:1.11
--- llvm-gcc/gcc/llvm-representation.h:1.10	Sun Oct 17 23:15:45 2004
+++ llvm-gcc/gcc/llvm-representation.h	Sat Nov 27 17:00:16 2004
@@ -280,7 +280,8 @@
    */
   struct llvm_function *ForwardedFunction;
 
-  enum llvm_linkage Linkage;
+  enum llvm_linkage Linkage : 4;
+  int  MarkedNameUsed : 1;
   char *PrettyFunctionName;
 } llvm_function;
 
@@ -299,8 +300,11 @@
 typedef struct llvm_global {
   llvm_constant ConstantBase;
   llvm_ilist_node(struct llvm_global, Globals); /* Part of Global list */
-  int isConstant;                       /* Is the global immutable? */
   llvm_constant *Init;                  /* Initializer or null for external */
+  int isConstant : 1;                   /* Is the global immutable? */
+
+  enum llvm_linkage Linkage : 4;
+  int  MarkedNameUsed : 1;
 
   /* ForwardedGlobal - This member is here only because we don't have a
    * replaceAllUsesWith equivalent in the C frontend.  The C++ front-end expands
@@ -311,8 +315,6 @@
    */
   struct llvm_global *ForwardedGlobal;
 
-  enum llvm_linkage Linkage;
-
   char *PrettyGlobalName;
 } llvm_global;
 






More information about the llvm-commits mailing list