aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/InlineSpiller.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2016-04-14 18:29:59 +0000
committerReid Kleckner <rnk@google.com>2016-04-14 18:29:59 +0000
commit28865809fe44a471c5418bf0c8fcdb742ea64efa (patch)
treea55c64a24618aa605ca87880a066833891ac5df9 /llvm/lib/CodeGen/InlineSpiller.cpp
parent96d2a1c603a92b9bfdf6d866f078be20487d4229 (diff)
downloadllvm-28865809fe44a471c5418bf0c8fcdb742ea64efa.zip
llvm-28865809fe44a471c5418bf0c8fcdb742ea64efa.tar.gz
llvm-28865809fe44a471c5418bf0c8fcdb742ea64efa.tar.bz2
Sink DI metadata usage out of MachineInstr.h and MachineInstrBuilder.h
MachineInstr.h and MachineInstrBuilder.h are very popular headers, widely included across all LLVM backends. It turns out that there only a handful of TUs that actually care about DI operands on MachineInstrs. After this change, touching DebugInfoMetadata.h and rebuilding llc only needs 112 actions instead of 542. llvm-svn: 266351
Diffstat (limited to 'llvm/lib/CodeGen/InlineSpiller.cpp')
-rw-r--r--llvm/lib/CodeGen/InlineSpiller.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/InlineSpiller.cpp b/llvm/lib/CodeGen/InlineSpiller.cpp
index c232639..5cdc397 100644
--- a/llvm/lib/CodeGen/InlineSpiller.cpp
+++ b/llvm/lib/CodeGen/InlineSpiller.cpp
@@ -31,6 +31,7 @@
#include "llvm/CodeGen/MachineLoopInfo.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/VirtRegMap.h"
+#include "llvm/IR/DebugInfo.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"