[llvm] cbd790a - DebugHandlerBase.h - reduce MachineInstr.h include to DebugLoc.h include.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 19 03:17:26 PDT 2020
Author: Simon Pilgrim
Date: 2020-04-19T11:14:01+01:00
New Revision: cbd790a443c2f119a452cf033214b162fe82628c
URL: https://github.com/llvm/llvm-project/commit/cbd790a443c2f119a452cf033214b162fe82628c
DIFF: https://github.com/llvm/llvm-project/commit/cbd790a443c2f119a452cf033214b162fe82628c.diff
LOG: DebugHandlerBase.h - reduce MachineInstr.h include to DebugLoc.h include.
We were only including MachineInstr.h for DebugLoc.h. This exposes an implicit include dependency in BTFDebug.h where I've had to add the MachineInstr.h include.
Added:
Modified:
llvm/include/llvm/CodeGen/DebugHandlerBase.h
llvm/lib/Target/BPF/BTFDebug.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/DebugHandlerBase.h b/llvm/include/llvm/CodeGen/DebugHandlerBase.h
index d5195118cab4..06a3c85a35f1 100644
--- a/llvm/include/llvm/CodeGen/DebugHandlerBase.h
+++ b/llvm/include/llvm/CodeGen/DebugHandlerBase.h
@@ -18,8 +18,8 @@
#include "llvm/CodeGen/AsmPrinterHandler.h"
#include "llvm/CodeGen/DbgEntityHistoryCalculator.h"
#include "llvm/CodeGen/LexicalScopes.h"
-#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/IR/DebugInfoMetadata.h"
+#include "llvm/IR/DebugLoc.h"
namespace llvm {
diff --git a/llvm/lib/Target/BPF/BTFDebug.h b/llvm/lib/Target/BPF/BTFDebug.h
index 0812c4f7915d..6e2c53a2e831 100644
--- a/llvm/lib/Target/BPF/BTFDebug.h
+++ b/llvm/lib/Target/BPF/BTFDebug.h
@@ -16,6 +16,7 @@
#include "llvm/ADT/StringMap.h"
#include "llvm/CodeGen/DebugHandlerBase.h"
+#include "llvm/CodeGen/MachineInstr.h"
#include <set>
#include <unordered_map>
#include "BTF.h"
More information about the llvm-commits
mailing list