[llvm-commits] CVS: llvm/lib/Bytecode/Writer/Writer.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Nov 15 13:56:45 PST 2004



Changes in directory llvm/lib/Bytecode/Writer:

Writer.cpp updated: 1.88 -> 1.89
---
Log message:

Disable this change, it was premature


---
Diffs of the changes:  (+3 -3)

Index: llvm/lib/Bytecode/Writer/Writer.cpp
diff -u llvm/lib/Bytecode/Writer/Writer.cpp:1.88 llvm/lib/Bytecode/Writer/Writer.cpp:1.89
--- llvm/lib/Bytecode/Writer/Writer.cpp:1.88	Mon Nov 15 15:46:40 2004
+++ llvm/lib/Bytecode/Writer/Writer.cpp	Mon Nov 15 15:56:33 2004
@@ -942,12 +942,12 @@
 }
 
 void BytecodeWriter::outputFunction(const Function *F) {
-  // If this is an external function, there is nothing else to emit!
-  if (F->isExternal()) return;
-
   BytecodeBlock FunctionBlock(BytecodeFormat::FunctionBlockID, *this);
   output_vbr(getEncodedLinkage(F));
 
+  // If this is an external function, there is nothing else to emit!
+  if (F->isExternal()) return;
+
   // Get slot information about the function...
   Table.incorporateFunction(F);
 






More information about the llvm-commits mailing list