[llvm-commits] CVS: llvm-gcc/gcc/varasm.c

Chris Lattner lattner at cs.uiuc.edu
Tue Jun 8 02:36:06 PDT 2004


Changes in directory llvm-gcc/gcc:

varasm.c updated: 1.3 -> 1.4

---
Log message:

assemble_external is not needed by the CFE any more, it just adds stuff that we
will get later anyway


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

Index: llvm-gcc/gcc/varasm.c
diff -u llvm-gcc/gcc/varasm.c:1.3 llvm-gcc/gcc/varasm.c:1.4
--- llvm-gcc/gcc/varasm.c:1.3	Thu Feb  5 10:05:45 2004
+++ llvm-gcc/gcc/varasm.c	Tue Jun  8 02:34:54 2004
@@ -1619,14 +1619,9 @@
 void
 assemble_external (tree decl ATTRIBUTE_UNUSED)
 {
+  if (EMIT_LLVM) return;
   if (DECL_P (decl) && DECL_EXTERNAL (decl) && TREE_PUBLIC (decl))
     {
-      if (EMIT_LLVM) {
-        if (!DECL_LLVM_SET_P(decl))
-          llvm_assemble_external(decl);
-        return;
-      }
-      
       /* Because most platforms do not define ASM_OUTPUT_EXTERNAL, the
          main body of this code is only rarely exercised.  To provide some
          testing, on all platforms, we make sure that the ASM_OUT_FILE is





More information about the llvm-commits mailing list