Parser.h/cpp - cleanup includes and forward declaration. NFC.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 16 Apr 2020 11:37:46 +0000 (12:37 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 16 Apr 2020 12:15:32 +0000 (13:15 +0100)
Parser.h - Reduce MemoryBuffer.h include to just the necessary StringRef.h include and MemoryBufferRef forward declaration
Parser.cpp - Remove unused raw_ostream.h include

llvm/include/llvm/AsmParser/Parser.h
llvm/lib/AsmParser/Parser.cpp

index b0c6034..28a0a47 100644 (file)
 #ifndef LLVM_ASMPARSER_PARSER_H
 #define LLVM_ASMPARSER_PARSER_H
 
-#include "llvm/Support/MemoryBuffer.h"
+#include "llvm/ADT/StringRef.h"
+#include <memory>
 
 namespace llvm {
 
 class Constant;
 class LLVMContext;
+class MemoryBufferRef;
 class Module;
 class ModuleSummaryIndex;
 struct SlotMapping;
index b7f552a..7f42832 100644 (file)
@@ -17,9 +17,9 @@
 #include "llvm/IR/ModuleSummaryIndex.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/SourceMgr.h"
-#include "llvm/Support/raw_ostream.h"
 #include <cstring>
 #include <system_error>
+
 using namespace llvm;
 
 bool llvm::parseAssemblyInto(MemoryBufferRef F, Module *M,