Skip to content

Commit b9a8e78

Browse files
committed
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
1 parent ee66b5b commit b9a8e78

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

llvm/include/llvm/AsmParser/Parser.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313
#ifndef LLVM_ASMPARSER_PARSER_H
1414
#define LLVM_ASMPARSER_PARSER_H
1515

16-
#include "llvm/Support/MemoryBuffer.h"
16+
#include "llvm/ADT/StringRef.h"
17+
#include <memory>
1718

1819
namespace llvm {
1920

2021
class Constant;
2122
class LLVMContext;
23+
class MemoryBufferRef;
2224
class Module;
2325
class ModuleSummaryIndex;
2426
struct SlotMapping;

llvm/lib/AsmParser/Parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
#include "llvm/IR/ModuleSummaryIndex.h"
1818
#include "llvm/Support/MemoryBuffer.h"
1919
#include "llvm/Support/SourceMgr.h"
20-
#include "llvm/Support/raw_ostream.h"
2120
#include <cstring>
2221
#include <system_error>
22+
2323
using namespace llvm;
2424

2525
bool llvm::parseAssemblyInto(MemoryBufferRef F, Module *M,

0 commit comments

Comments
 (0)