[llvm-commits] CVS: llvm/include/llvm/Bytecode/BytecodeHandler.h

Chris Lattner sabre at nondot.org
Mon Feb 12 10:54:03 PST 2007



Changes in directory llvm/include/llvm/Bytecode:

BytecodeHandler.h updated: 1.15 -> 1.16
---
Log message:

avoid creating a temporary string when reading the symbol table for a
module.  This speeds up the bcreader 11%.


---
Diffs of the changes:  (+1 -1)

 BytecodeHandler.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/include/llvm/Bytecode/BytecodeHandler.h
diff -u llvm/include/llvm/Bytecode/BytecodeHandler.h:1.15 llvm/include/llvm/Bytecode/BytecodeHandler.h:1.16
--- llvm/include/llvm/Bytecode/BytecodeHandler.h:1.15	Sat Feb 10 08:07:56 2007
+++ llvm/include/llvm/Bytecode/BytecodeHandler.h	Mon Feb 12 12:53:42 2007
@@ -175,7 +175,7 @@
   virtual void handleSymbolTableValue(
     unsigned i,              ///< The index of the value in this plane
     unsigned slot,           ///< Slot number of the named value
-    const std::string& name  ///< Name of the value.
+    const char *name, unsigned NameLen  ///< Name of the value.
   ) {}
 
   /// @brief Handle the end of a value symbol table






More information about the llvm-commits mailing list