diff options
| author | David Blaikie <dblaikie@gmail.com> | 2014-04-25 21:34:35 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2014-04-25 21:34:35 +0000 |
| commit | daefdbf3ad41bc72d6c4c3f70bbaee39ed9f5d18 (patch) | |
| tree | 528bc96b8ae70e1556b5bfce8005153279ef808f /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
| parent | 001ecd9aa988f88d66ca9fb9e15dc0bfe04ea40b (diff) | |
| download | bcm5719-llvm-daefdbf3ad41bc72d6c4c3f70bbaee39ed9f5d18.tar.gz bcm5719-llvm-daefdbf3ad41bc72d6c4c3f70bbaee39ed9f5d18.zip | |
Encapsulate the DWARF string pool in a separate type.
Pulls out some more code from some of the rather monolithic DWARF
classes. Unlike the address table, the string table won't move up into
DwarfDebug - each DWARF file has its own string table (but there can be
only one address table).
llvm-svn: 207277
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 3bc359425c0..90c127c5dd2 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2545,27 +2545,27 @@ void DwarfDebug::attachLowHighPC(DwarfCompileUnit &Unit, DIE &D, void DwarfDebug::addAccelName(StringRef Name, const DIE &Die) { if (!useDwarfAccelTables()) return; - InfoHolder.getStringPoolEntry(Name); + InfoHolder.getStringPool().getSymbol(*Asm, Name); AccelNames.AddName(Name, &Die); } void DwarfDebug::addAccelObjC(StringRef Name, const DIE &Die) { if (!useDwarfAccelTables()) return; - InfoHolder.getStringPoolEntry(Name); + InfoHolder.getStringPool().getSymbol(*Asm, Name); AccelObjC.AddName(Name, &Die); } void DwarfDebug::addAccelNamespace(StringRef Name, const DIE &Die) { if (!useDwarfAccelTables()) return; - InfoHolder.getStringPoolEntry(Name); + InfoHolder.getStringPool().getSymbol(*Asm, Name); AccelNamespace.AddName(Name, &Die); } void DwarfDebug::addAccelType(StringRef Name, const DIE &Die, char Flags) { if (!useDwarfAccelTables()) return; - InfoHolder.getStringPoolEntry(Name); + InfoHolder.getStringPool().getSymbol(*Asm, Name); AccelTypes.AddName(Name, &Die, Flags); } |

