[llvm] ffa6262 - [Object] Include llvm/Support/MemoryBuffer.h after D119457
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 10 20:23:27 PST 2022
Author: Fangrui Song
Date: 2022-02-10T20:23:22-08:00
New Revision: ffa6262cb4e2a335d26416fad39a581b4f98c5f4
URL: https://github.com/llvm/llvm-project/commit/ffa6262cb4e2a335d26416fad39a581b4f98c5f4
DIFF: https://github.com/llvm/llvm-project/commit/ffa6262cb4e2a335d26416fad39a581b4f98c5f4.diff
LOG: [Object] Include llvm/Support/MemoryBuffer.h after D119457
libc++ -DLLVM_ENABLE_MODULES=on build needs the complete type. This fixes
error: invalid application of 'sizeof' to an incomplete type 'llvm::MemoryBuffer'
Added:
Modified:
llvm/include/llvm/Object/Binary.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Object/Binary.h b/llvm/include/llvm/Object/Binary.h
index d35f2ccaba828..b496956fc2123 100644
--- a/llvm/include/llvm/Object/Binary.h
+++ b/llvm/include/llvm/Object/Binary.h
@@ -18,14 +18,13 @@
#include "llvm/Object/Error.h"
#include "llvm/Support/CBindingWrapping.h"
#include "llvm/Support/Error.h"
-#include "llvm/Support/MemoryBufferRef.h"
+#include "llvm/Support/MemoryBuffer.h"
#include <memory>
#include <utility>
namespace llvm {
class LLVMContext;
-class MemoryBuffer;
class StringRef;
namespace object {
More information about the llvm-commits
mailing list