diff options
author | Chris Lattner <sabre@nondot.org> | 2002-11-20 18:36:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-11-20 18:36:02 +0000 |
commit | 6e6026b46569b01f8f6d4dcdb6c899c3a9c76b3e (patch) | |
tree | 57322a305c9e9d3273ae9d3d09728ec2662e97d8 /lib/Bytecode/Writer/Writer.cpp | |
parent | c09aab0a4de7e3f65dd830803faadb7abae28872 (diff) |
- Eliminated the deferred symbol table stuff in Module & Function, it really
wasn't an optimization and it was causing lots of bugs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4779 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Writer/Writer.cpp')
-rw-r--r-- | lib/Bytecode/Writer/Writer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp index e85498ce5f..92b6a62cc6 100644 --- a/lib/Bytecode/Writer/Writer.cpp +++ b/lib/Bytecode/Writer/Writer.cpp @@ -58,8 +58,7 @@ BytecodeWriter::BytecodeWriter(std::deque<unsigned char> &o, const Module *M) processMethod(I); // If needed, output the symbol table for the module... - if (M->hasSymbolTable()) - outputSymbolTable(*M->getSymbolTable()); + outputSymbolTable(M->getSymbolTable()); } // Helper function for outputConstants(). @@ -187,8 +186,7 @@ void BytecodeWriter::processMethod(const Function *F) { processBasicBlock(*I); // If needed, output the symbol table for the function... - if (F->hasSymbolTable()) - outputSymbolTable(*F->getSymbolTable()); + outputSymbolTable(F->getSymbolTable()); Table.purgeFunction(); } |