[Lldb-commits] [lldb] d3a536f - [lldb] Appease the MSCV compiler

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 19 17:37:36 PDT 2022


Author: Jonas Devlieghere
Date: 2022-09-19T17:37:27-07:00
New Revision: d3a536fa933bba5ffad48d7e5ab7de6f358550e7

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

LOG: [lldb] Appease the MSCV compiler

Fix error C2027: use of undefined type 'llvm::MemoryBuffer'.

Added: 
    

Modified: 
    lldb/include/lldb/Core/DataFileCache.h
    lldb/source/Core/DataFileCache.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/include/lldb/Core/DataFileCache.h b/lldb/include/lldb/Core/DataFileCache.h
index 300c4842d9d2..b6cc3cd8f1cc 100644
--- a/lldb/include/lldb/Core/DataFileCache.h
+++ b/lldb/include/lldb/Core/DataFileCache.h
@@ -16,6 +16,8 @@
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/Support/CachePruning.h"
 #include "llvm/Support/Caching.h"
+#include "llvm/Support/MemoryBuffer.h"
+
 #include <mutex>
 
 namespace lldb_private {

diff  --git a/lldb/source/Core/DataFileCache.cpp b/lldb/source/Core/DataFileCache.cpp
index a678cd91efb8..36efccd296a3 100644
--- a/lldb/source/Core/DataFileCache.cpp
+++ b/lldb/source/Core/DataFileCache.cpp
@@ -15,7 +15,6 @@
 #include "lldb/Utility/LLDBLog.h"
 #include "lldb/Utility/Log.h"
 #include "llvm/Support/CachePruning.h"
-#include "llvm/Support/MemoryBuffer.h"
 
 using namespace lldb_private;
 


        


More information about the lldb-commits mailing list