From 5c15fe5cf8a5f8934baa17d77b8f8065224cd43e Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 5 Jul 2004 00:57:50 +0000 Subject: Finalize bytecode dumping. The "handleFinish" method was getting called too soon so the function data was not getting dumped (it was generated after the call handleFinish). Also cleaned up the output format for proper indentation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14627 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Reader/ReaderWrappers.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Bytecode/Reader/ReaderWrappers.cpp') diff --git a/lib/Bytecode/Reader/ReaderWrappers.cpp b/lib/Bytecode/Reader/ReaderWrappers.cpp index 42d2b0e2a1..f8f1101a01 100644 --- a/lib/Bytecode/Reader/ReaderWrappers.cpp +++ b/lib/Bytecode/Reader/ReaderWrappers.cpp @@ -58,7 +58,7 @@ BytecodeFileReader::BytecodeFileReader(const std::string &Filename, try { // Parse the bytecode we mmapped in - ParseBytecode(Buffer, Length, Filename); + ParseBytecode(Buffer, Length, Filename, H != 0); } catch (...) { UnmapFileFromAddressSpace(Buffer, Length); throw; @@ -114,7 +114,7 @@ BytecodeBufferReader::BytecodeBufferReader(const unsigned char *Buf, MustDelete = false; } try { - ParseBytecode(ParseBegin, Length, ModuleID); + ParseBytecode(ParseBegin, Length, ModuleID, H != 0); } catch (...) { if (MustDelete) delete [] Buffer; throw; @@ -163,7 +163,7 @@ BytecodeStdinReader::BytecodeStdinReader( BytecodeHandler* H ) throw std::string("Standard Input empty!"); FileBuf = &FileData[0]; - ParseBytecode(FileBuf, FileData.size(), ""); + ParseBytecode(FileBuf, FileData.size(), "", H != 0 ); } //===----------------------------------------------------------------------===// -- cgit v1.2.3