summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-08-01 01:34:21 +0000
committerBill Wendling <isanbard@gmail.com>2010-08-01 01:34:21 +0000
commitd9900542a6d730a44d8f9551f270b43378104f34 (patch)
tree1667aa7d4c0e876a562fb56603651aaf8bd6f960 /llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
parenta755f0f74a2ca77a3b39410723be3eb7e7cc25af (diff)
downloadbcm5719-llvm-d9900542a6d730a44d8f9551f270b43378104f34.tar.gz
bcm5719-llvm-d9900542a6d730a44d8f9551f270b43378104f34.zip
Reference the personalities. Don't copy them into a new vector.
llvm-svn: 109966
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
index c87284083cd..86a368831e0 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
@@ -894,7 +894,7 @@ void DwarfException::EndModule() {
if (!shouldEmitMovesModule && !shouldEmitTableModule)
return;
- const std::vector<const Function *> Personalities = MMI->getPersonalities();
+ const std::vector<const Function*> &Personalities = MMI->getPersonalities();
for (unsigned I = 0, E = Personalities.size(); I < E; ++I)
EmitCIE(Personalities[I], I);
OpenPOWER on IntegriCloud