diff options
author | Chris Lattner <sabre@nondot.org> | 2007-04-29 05:49:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-04-29 05:49:09 +0000 |
commit | 01b27458a170fdad6ab2a8f214e160f64477c978 (patch) | |
tree | 2f807d513ef8a97563303e00b21ab87c6c786808 /lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 1a9df8eee0ac8cbabd887e924ddb07658ef5a9cc (diff) |
Fix this to use the right block ID
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36550 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | lib/Bitcode/Writer/BitcodeWriter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp index 5851710fe0..2a4b13a947 100644 --- a/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -485,8 +485,6 @@ static void WriteInstruction(const Instruction &I, ValueEnumerator &VE, BitstreamWriter &Stream, SmallVector<unsigned, 64> &Vals) { return; // FIXME: REMOVE - - unsigned Code = 0; unsigned AbbrevToUse = 0; switch (I.getOpcode()) { @@ -524,7 +522,7 @@ static void WriteInstruction(const Instruction &I, ValueEnumerator &VE, /// WriteFunction - Emit a function body to the module stream. static void WriteFunction(const Function &F, ValueEnumerator &VE, BitstreamWriter &Stream) { - Stream.EnterSubblock(bitc::TYPE_SYMTAB_BLOCK_ID, 3); + Stream.EnterSubblock(bitc::FUNCTION_BLOCK_ID, 3); VE.incorporateFunction(F); SmallVector<unsigned, 64> Vals; |