summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2019-04-12 06:57:45 +0000
committerEric Christopher <echristo@gmail.com>2019-04-12 06:57:45 +0000
commit886a7b3b9cbba7289937c2e041e21d3cbe8d5eab (patch)
tree2174095971d6b79e94769fd7990cb8cb01b2dc23 /llvm/lib/MC
parent3b1239d2a86ffc6158130f57a893b64a5221d659 (diff)
downloadbcm5719-llvm-886a7b3b9cbba7289937c2e041e21d3cbe8d5eab.tar.gz
bcm5719-llvm-886a7b3b9cbba7289937c2e041e21d3cbe8d5eab.zip
Move addInitialFrameState out of line and remove the MCDwarf.h include.
This removes 50 transitive dependencies for a modification of MCDwarf.h in a build of llc for a single out of line function and reduces the build overhead by 20% without impacting test time of check-llvm. llvm-svn: 358258
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r--llvm/lib/MC/MCAsmInfo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCAsmInfo.cpp b/llvm/lib/MC/MCAsmInfo.cpp
index dd16945f7f2..71e51e320f8 100644
--- a/llvm/lib/MC/MCAsmInfo.cpp
+++ b/llvm/lib/MC/MCAsmInfo.cpp
@@ -70,6 +70,10 @@ MCAsmInfo::MCAsmInfo() {
MCAsmInfo::~MCAsmInfo() = default;
+void MCAsmInfo::addInitialFrameState(const MCCFIInstruction &Inst) {
+ InitialFrameState.push_back(Inst);
+}
+
bool MCAsmInfo::isSectionAtomizableBySymbols(const MCSection &Section) const {
return false;
}
OpenPOWER on IntegriCloud