summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAssembler.cpp
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2012-12-05 22:11:02 +0000
committerEli Bendersky <eliben@google.com>2012-12-05 22:11:02 +0000
commit02631c4e312f0e275a38702d7d0d5ba02c624e3a (patch)
treed6ed1a579e5bfdb13f61512b31608c89cda2a37e /llvm/lib/MC/MCAssembler.cpp
parentd3746e6895db109fd6fca8b57bda94c3dbbc6cdc (diff)
downloadbcm5719-llvm-02631c4e312f0e275a38702d7d0d5ba02c624e3a.tar.gz
bcm5719-llvm-02631c4e312f0e275a38702d7d0d5ba02c624e3a.zip
Change std::vector to SmallVector<4> and remove some unused methods.
This is more consistent with other vectors in this code. In addition, I ran some tests compiling a large program and >96% of fragments have 4 or less fixups, so SmallVector<4> is a good optimization. llvm-svn: 169433
Diffstat (limited to 'llvm/lib/MC/MCAssembler.cpp')
-rw-r--r--llvm/lib/MC/MCAssembler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp
index 48aec668bf8..457abd2a0aa 100644
--- a/llvm/lib/MC/MCAssembler.cpp
+++ b/llvm/lib/MC/MCAssembler.cpp
@@ -870,7 +870,7 @@ void MCFragment::dump() {
}
OS << "] (" << Contents.size() << " bytes)";
- if (!DF->getFixups().empty()) {
+ if (DF->fixup_begin() != DF->fixup_end()) {
OS << ",\n ";
OS << " Fixups:[";
for (MCDataFragment::const_fixup_iterator it = DF->fixup_begin(),
OpenPOWER on IntegriCloud