summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-04-06 16:49:37 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-04-06 16:49:37 +0000
commit337a1b29e581221c5996a71fd53e48a52b04eeee (patch)
treea7e4be737832160bd4d663479afd6a775e4fcdd7 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent300504c1351e06994bda082980c799d99774c7cd (diff)
downloadbcm5719-llvm-337a1b29e581221c5996a71fd53e48a52b04eeee.tar.gz
bcm5719-llvm-337a1b29e581221c5996a71fd53e48a52b04eeee.zip
Do a topological sort of the types before writing them out.
This takes the linking of libxul on linux from 6m54.931s to 5m39.840s. llvm-svn: 129009
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index f8ef8c668c4..e34137f6155 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -197,7 +197,7 @@ static void WriteTypeTable(const ValueEnumerator &VE, BitstreamWriter &Stream) {
// Loop over all of the types, emitting each in turn.
for (unsigned i = 0, e = TypeList.size(); i != e; ++i) {
- const Type *T = TypeList[i].first;
+ const Type *T = TypeList[i];
int AbbrevToUse = 0;
unsigned Code = 0;
OpenPOWER on IntegriCloud