mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Use value types instead of 'new'd objects to store dwarf labels for asm files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206009 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -137,7 +137,7 @@ namespace llvm {
|
||||
|
||||
/// The information gathered from labels that will have dwarf label
|
||||
/// entries when generating dwarf assembly source files.
|
||||
std::vector<const MCGenDwarfLabelEntry *> MCGenDwarfLabelEntries;
|
||||
std::vector<MCGenDwarfLabelEntry> MCGenDwarfLabelEntries;
|
||||
|
||||
/// The string to embed in the debug information for the compile unit, if
|
||||
/// non-empty.
|
||||
@@ -383,11 +383,10 @@ namespace llvm {
|
||||
void setGenDwarfSectionEndSym(MCSymbol *Sym) {
|
||||
GenDwarfSectionEndSym = Sym;
|
||||
}
|
||||
const std::vector<const MCGenDwarfLabelEntry *>
|
||||
&getMCGenDwarfLabelEntries() const {
|
||||
const std::vector<MCGenDwarfLabelEntry> &getMCGenDwarfLabelEntries() const {
|
||||
return MCGenDwarfLabelEntries;
|
||||
}
|
||||
void addMCGenDwarfLabelEntry(const MCGenDwarfLabelEntry *E) {
|
||||
void addMCGenDwarfLabelEntry(const MCGenDwarfLabelEntry &E) {
|
||||
MCGenDwarfLabelEntries.push_back(E);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user