summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-05-16 00:35:24 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-05-16 00:35:24 +0000
commitf48de1cb7b1c3c59011f9d3d34e00bcf8ca29b01 (patch)
tree4764ea4f92f40d7202727cc3f599eb4085ce9ca5 /llvm/include
parent7f6290ca9ab4b02eab67262a8a103473c9148acc (diff)
downloadbcm5719-llvm-f48de1cb7b1c3c59011f9d3d34e00bcf8ca29b01.tar.gz
bcm5719-llvm-f48de1cb7b1c3c59011f9d3d34e00bcf8ca29b01.zip
MC: Change MCAssembler::Symbols to store MCSymbol, NFC
Instead of storing a list of the `MCSymbolData` in use, store the `MCSymbol`s. Churning in the direction of removing the back pointer from `MCSymbolData`. llvm-svn: 237496
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/MC/MCAssembler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/MC/MCAssembler.h b/llvm/include/llvm/MC/MCAssembler.h
index a27482c32a9..945f4220975 100644
--- a/llvm/include/llvm/MC/MCAssembler.h
+++ b/llvm/include/llvm/MC/MCAssembler.h
@@ -676,7 +676,7 @@ class MCAssembler {
public:
typedef iplist<MCSectionData> SectionDataListType;
- typedef std::vector<MCSymbolData *> SymbolDataListType;
+ typedef std::vector<const MCSymbol *> SymbolDataListType;
typedef SectionDataListType::const_iterator const_iterator;
typedef SectionDataListType::iterator iterator;
@@ -1052,7 +1052,7 @@ public:
*Created = !hasSymbolData(Symbol);
if (!hasSymbolData(Symbol)) {
Symbol.getUnsafeData().initialize(Symbol, nullptr, 0);
- Symbols.push_back(&Symbol.getData());
+ Symbols.push_back(&Symbol);
}
return Symbol.getData();
}
OpenPOWER on IntegriCloud