Skip to content

Commit 0caaf40

Browse files
committed
TGLexer.h - cleanup includes and forward declarations. NFC.
Replace ArrayRef.h with a forward declaration and include in ArrayRef.cpp Remove SMLoc forward declaration as we already have to include SMLoc.h
1 parent 3caa03e commit 0caaf40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/TableGen/TGLexer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
#include "TGLexer.h"
14+
#include "llvm/ADT/ArrayRef.h"
1415
#include "llvm/ADT/StringSwitch.h"
1516
#include "llvm/ADT/Twine.h"
1617
#include "llvm/Config/config.h" // for strtoull()/strtoll() define

llvm/lib/TableGen/TGLexer.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#ifndef LLVM_LIB_TABLEGEN_TGLEXER_H
1414
#define LLVM_LIB_TABLEGEN_TGLEXER_H
1515

16-
#include "llvm/ADT/ArrayRef.h"
1716
#include "llvm/ADT/StringRef.h"
1817
#include "llvm/ADT/StringSet.h"
1918
#include "llvm/Support/DataTypes.h"
@@ -24,8 +23,8 @@
2423
#include <string>
2524

2625
namespace llvm {
26+
template <typename T> class ArrayRef;
2727
class SourceMgr;
28-
class SMLoc;
2928
class Twine;
3029

3130
namespace tgtok {

0 commit comments

Comments
 (0)