Parser.h/cpp - cleanup includes and forward declaration. NFC.

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
This commit is contained in:
Simon Pilgrim 2020-04-16 12:37:46 +01:00
parent ee66b5b0da
commit b9a8e787ae
2 changed files with 4 additions and 2 deletions

View File

@ -13,12 +13,14 @@
#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;

View 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,