summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCELFStreamer.cpp
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2015-06-17 22:01:28 +0000
committerPete Cooper <peter_cooper@apple.com>2015-06-17 22:01:28 +0000
commite0d4037c6a0bcbdadf080e7a2ccd9846370d5f4c (patch)
tree8f06a28bad1808f1bfb648bb2c2a0e956d660231 /llvm/lib/MC/MCELFStreamer.cpp
parent6cac62797fbb1462cbe9ec3fccf94b7ecc6847e0 (diff)
downloadbcm5719-llvm-e0d4037c6a0bcbdadf080e7a2ccd9846370d5f4c.tar.gz
bcm5719-llvm-e0d4037c6a0bcbdadf080e7a2ccd9846370d5f4c.zip
Devirtualize and pack MCFragment to reduce memory usage.
MCFragment didn't really need vtables. The majority of virtual methods were just getters and setters. This removes the vtables and uses dispatch on the kind to do things like delete which needs to get the appropriate class. This reduces memory on the verify use list order test case by about 2MB out of 800MB. Reviewed by Rafael EspĂ­ndola llvm-svn: 239952
Diffstat (limited to 'llvm/lib/MC/MCELFStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCELFStreamer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCELFStreamer.cpp b/llvm/lib/MC/MCELFStreamer.cpp
index e0f4a2ae16a..fe9ac21e17f 100644
--- a/llvm/lib/MC/MCELFStreamer.cpp
+++ b/llvm/lib/MC/MCELFStreamer.cpp
@@ -45,7 +45,7 @@ MCELFStreamer::~MCELFStreamer() {
}
void MCELFStreamer::mergeFragment(MCDataFragment *DF,
- MCEncodedFragmentWithFixups *EF) {
+ MCDataFragment *EF) {
MCAssembler &Assembler = getAssembler();
if (Assembler.isBundlingEnabled() && Assembler.getRelaxAll()) {
OpenPOWER on IntegriCloud