summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-06-29 20:21:55 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-06-29 20:21:55 +0000
commit6fe4e79370afb194fcb0f030cb963bdfe28b5236 (patch)
tree202fac7532867b7c2148530c1c4b459e5d0ef58e /llvm/lib/CodeGen/AsmPrinter
parent5682efd28c745d1eeef33c376cdcf5fca670d60e (diff)
downloadbcm5719-llvm-6fe4e79370afb194fcb0f030cb963bdfe28b5236.tar.gz
bcm5719-llvm-6fe4e79370afb194fcb0f030cb963bdfe28b5236.zip
[MMI] Use TinyPtrVector instead of PointerUnion with vector.
Also simplify duplicated code a bit. No functionality change intended. llvm-svn: 240990
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 28f5bc49dca..8a7e9f99161 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -2390,8 +2390,7 @@ void AsmPrinter::EmitBasicBlockStart(const MachineBasicBlock &MBB) const {
if (isVerbose())
OutStreamer->AddComment("Block address taken");
- std::vector<MCSymbol*> Symbols = MMI->getAddrLabelSymbolToEmit(BB);
- for (auto *Sym : Symbols)
+ for (MCSymbol *Sym : MMI->getAddrLabelSymbolToEmit(BB))
OutStreamer->EmitLabel(Sym);
}
OpenPOWER on IntegriCloud