From: Eric Christopher Date: Fri, 12 Apr 2019 06:57:45 +0000 (+0000) Subject: Move addInitialFrameState out of line and remove the MCDwarf.h include. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5594c48b1c05a699ea4cb3ead2962c04bf1c35cb;p=llvm 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358258 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h index e861df5bb3d..9548674e70c 100644 --- a/include/llvm/MC/MCAsmInfo.h +++ b/include/llvm/MC/MCAsmInfo.h @@ -17,13 +17,13 @@ #include "llvm/ADT/StringRef.h" #include "llvm/MC/MCDirectives.h" -#include "llvm/MC/MCDwarf.h" #include "llvm/MC/MCTargetOptions.h" #include namespace llvm { class MCContext; +class MCCFIInstruction; class MCExpr; class MCSection; class MCStreamer; @@ -597,9 +597,7 @@ public: return SupportsExtendedDwarfLocDirective; } - void addInitialFrameState(const MCCFIInstruction &Inst) { - InitialFrameState.push_back(Inst); - } + void addInitialFrameState(const MCCFIInstruction &Inst); const std::vector &getInitialFrameState() const { return InitialFrameState; diff --git a/lib/MC/MCAsmInfo.cpp b/lib/MC/MCAsmInfo.cpp index dd16945f7f2..71e51e320f8 100644 --- a/lib/MC/MCAsmInfo.cpp +++ b/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; }