[llvm] r358258 - Move addInitialFrameState out of line and remove the MCDwarf.h include.
Eric Christopher via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 11 23:57:45 PDT 2019
Author: echristo
Date: Thu Apr 11 23:57:45 2019
New Revision: 358258
URL: http://llvm.org/viewvc/llvm-project?rev=358258&view=rev
Log:
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.
Modified:
llvm/trunk/include/llvm/MC/MCAsmInfo.h
llvm/trunk/lib/MC/MCAsmInfo.cpp
Modified: llvm/trunk/include/llvm/MC/MCAsmInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCAsmInfo.h?rev=358258&r1=358257&r2=358258&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCAsmInfo.h (original)
+++ llvm/trunk/include/llvm/MC/MCAsmInfo.h Thu Apr 11 23:57:45 2019
@@ -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 <vector>
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<MCCFIInstruction> &getInitialFrameState() const {
return InitialFrameState;
Modified: llvm/trunk/lib/MC/MCAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCAsmInfo.cpp?rev=358258&r1=358257&r2=358258&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCAsmInfo.cpp (original)
+++ llvm/trunk/lib/MC/MCAsmInfo.cpp Thu Apr 11 23:57:45 2019
@@ -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;
}
More information about the llvm-commits
mailing list