diff options
author | Eric Christopher <echristo@gmail.com> | 2019-04-12 07:42:35 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2019-04-12 07:42:35 +0000 |
commit | b41448771911051647754287834fe5ecbcbb491c (patch) | |
tree | e2540dfad38376c30f7b115d065262c4667d8183 /llvm/lib/MC/MCStreamer.cpp | |
parent | 6b06c6a5ef9f908521870e399473284b2c81e1cb (diff) | |
download | llvm-b41448771911051647754287834fe5ecbcbb491c.zip llvm-b41448771911051647754287834fe5ecbcbb491c.tar.gz llvm-b41448771911051647754287834fe5ecbcbb491c.tar.bz2 |
Move getNumFrameInfos and getDwarfFrameInfos 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 pair of out of line functions
and reduces the build overhead of 'touch MCDwarf.h" by 15% without
impacting test time of check-llvm.
llvm-svn: 358264
Diffstat (limited to 'llvm/lib/MC/MCStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCStreamer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp index 20d360f..b7986ee 100644 --- a/llvm/lib/MC/MCStreamer.cpp +++ b/llvm/lib/MC/MCStreamer.cpp @@ -107,6 +107,11 @@ raw_ostream &MCStreamer::GetCommentOS() { return nulls(); } +unsigned MCStreamer::getNumFrameInfos() { return DwarfFrameInfos.size(); } +ArrayRef<MCDwarfFrameInfo> MCStreamer::getDwarfFrameInfos() const { + return DwarfFrameInfos; +} + void MCStreamer::emitRawComment(const Twine &T, bool TabPrefix) {} void MCStreamer::addExplicitComment(const Twine &T) {} |