Disable this change, it was premature
authorChris Lattner <sabre@nondot.org>
Mon, 15 Nov 2004 21:56:33 +0000 (21:56 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 15 Nov 2004 21:56:33 +0000 (21:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17857 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Writer/Writer.cpp

index 2550d107c3e9ef423f16532b9b7fbc87256a070d..7d578f966e10ebac896ba9d20d7d597057118694 100644 (file)
@@ -942,12 +942,12 @@ void BytecodeWriter::outputInstructions(const Function *F) {
 }
 
 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);