mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
StringRefize some debug accel table bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181663 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2066,7 +2066,7 @@ void DwarfDebug::emitAccelNames() {
|
||||
const StringMap<std::vector<DIE*> > &Names = TheCU->getAccelNames();
|
||||
for (StringMap<std::vector<DIE*> >::const_iterator
|
||||
GI = Names.begin(), GE = Names.end(); GI != GE; ++GI) {
|
||||
const char *Name = GI->getKeyData();
|
||||
StringRef Name = GI->getKey();
|
||||
const std::vector<DIE *> &Entities = GI->second;
|
||||
for (std::vector<DIE *>::const_iterator DI = Entities.begin(),
|
||||
DE = Entities.end(); DI != DE; ++DI)
|
||||
@@ -2095,7 +2095,7 @@ void DwarfDebug::emitAccelObjC() {
|
||||
const StringMap<std::vector<DIE*> > &Names = TheCU->getAccelObjC();
|
||||
for (StringMap<std::vector<DIE*> >::const_iterator
|
||||
GI = Names.begin(), GE = Names.end(); GI != GE; ++GI) {
|
||||
const char *Name = GI->getKeyData();
|
||||
StringRef Name = GI->getKey();
|
||||
const std::vector<DIE *> &Entities = GI->second;
|
||||
for (std::vector<DIE *>::const_iterator DI = Entities.begin(),
|
||||
DE = Entities.end(); DI != DE; ++DI)
|
||||
@@ -2123,7 +2123,7 @@ void DwarfDebug::emitAccelNamespaces() {
|
||||
const StringMap<std::vector<DIE*> > &Names = TheCU->getAccelNamespace();
|
||||
for (StringMap<std::vector<DIE*> >::const_iterator
|
||||
GI = Names.begin(), GE = Names.end(); GI != GE; ++GI) {
|
||||
const char *Name = GI->getKeyData();
|
||||
StringRef Name = GI->getKey();
|
||||
const std::vector<DIE *> &Entities = GI->second;
|
||||
for (std::vector<DIE *>::const_iterator DI = Entities.begin(),
|
||||
DE = Entities.end(); DI != DE; ++DI)
|
||||
@@ -2158,7 +2158,7 @@ void DwarfDebug::emitAccelTypes() {
|
||||
= TheCU->getAccelTypes();
|
||||
for (StringMap<std::vector<std::pair<DIE*, unsigned> > >::const_iterator
|
||||
GI = Names.begin(), GE = Names.end(); GI != GE; ++GI) {
|
||||
const char *Name = GI->getKeyData();
|
||||
StringRef Name = GI->getKey();
|
||||
const std::vector<std::pair<DIE *, unsigned> > &Entities = GI->second;
|
||||
for (std::vector<std::pair<DIE *, unsigned> >::const_iterator DI
|
||||
= Entities.begin(), DE = Entities.end(); DI !=DE; ++DI)
|
||||
@@ -2222,7 +2222,7 @@ void DwarfDebug::emitDebugPubnames() {
|
||||
|
||||
if (Asm->isVerbose())
|
||||
Asm->OutStreamer.AddComment("External Name");
|
||||
Asm->OutStreamer.EmitBytes(StringRef(Name, strlen(Name)+1), 0);
|
||||
Asm->OutStreamer.EmitBytes(StringRef(Name, GI->getKeyLength()+1), 0);
|
||||
}
|
||||
|
||||
Asm->OutStreamer.AddComment("End Mark");
|
||||
|
Reference in New Issue
Block a user