mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 07:24:47 +00:00
avoid creating a temporary string when reading the symbol table for a
module. This speeds up the bcreader 11%. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34198 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -250,10 +250,10 @@ public:
|
||||
}
|
||||
|
||||
virtual void handleSymbolTableValue(unsigned TySlot, unsigned ValSlot,
|
||||
const std::string& name) {
|
||||
const char *Name, unsigned NameLen) {
|
||||
if (os)
|
||||
*os << " Value " << TySlot << " Slot=" << ValSlot
|
||||
<< " Name: " << name << "\n";
|
||||
<< " Name: " << std::string(Name, Name+NameLen) << "\n";
|
||||
if (ValSlot > bca.maxValueSlot)
|
||||
bca.maxValueSlot = ValSlot;
|
||||
}
|
||||
|
Reference in New Issue
Block a user