[llvm-commits] CVS: llvm/lib/Bytecode/Writer/Writer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Nov 20 12:33:05 PST 2002
Changes in directory llvm/lib/Bytecode/Writer:
Writer.cpp updated: 1.29 -> 1.30
---
Log message:
- Eliminated the deferred symbol table stuff in Module & Function, it really
wasn't an optimization and it was causing lots of bugs.
---
Diffs of the changes:
Index: llvm/lib/Bytecode/Writer/Writer.cpp
diff -u llvm/lib/Bytecode/Writer/Writer.cpp:1.29 llvm/lib/Bytecode/Writer/Writer.cpp:1.30
--- llvm/lib/Bytecode/Writer/Writer.cpp:1.29 Sun Oct 13 22:34:17 2002
+++ llvm/lib/Bytecode/Writer/Writer.cpp Wed Nov 20 12:32:01 2002
@@ -58,8 +58,7 @@
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 @@
processBasicBlock(*I);
// If needed, output the symbol table for the function...
- if (F->hasSymbolTable())
- outputSymbolTable(*F->getSymbolTable());
+ outputSymbolTable(F->getSymbolTable());
Table.purgeFunction();
}
More information about the llvm-commits
mailing list