[llvm] 8ebab67 - MemoryLocation.h - reduce Instruction.h include to forward declaration. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 26 02:08:24 PDT 2020


Author: Simon Pilgrim
Date: 2020-06-26T09:58:21+01:00
New Revision: 8ebab67785ebe6d14dd87daf3dd063be35be9d95

URL: https://github.com/llvm/llvm-project/commit/8ebab67785ebe6d14dd87daf3dd063be35be9d95
DIFF: https://github.com/llvm/llvm-project/commit/8ebab67785ebe6d14dd87daf3dd063be35be9d95.diff

LOG: MemoryLocation.h - reduce Instruction.h include to forward declaration. NFC.

Added: 
    

Modified: 
    llvm/include/llvm/Analysis/MemoryLocation.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Analysis/MemoryLocation.h b/llvm/include/llvm/Analysis/MemoryLocation.h
index f7bb15d256fd..d01ac7da85cd 100644
--- a/llvm/include/llvm/Analysis/MemoryLocation.h
+++ b/llvm/include/llvm/Analysis/MemoryLocation.h
@@ -17,13 +17,13 @@
 
 #include "llvm/ADT/DenseMapInfo.h"
 #include "llvm/ADT/Optional.h"
-#include "llvm/IR/Instruction.h"
 #include "llvm/IR/Metadata.h"
 #include "llvm/Support/TypeSize.h"
 
 namespace llvm {
 
 class CallBase;
+class Instruction;
 class LoadInst;
 class StoreInst;
 class MemTransferInst;


        


More information about the llvm-commits mailing list