[llvm] e5fe6cc - LLLexer.h - reduce SourceMgr.h include to SMLoc.h. NFC
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 24 05:44:41 PDT 2020
Author: Simon Pilgrim
Date: 2020-04-24T13:27:56+01:00
New Revision: e5fe6cc25195c9b1ad7b2aca0750bc69282b75c8
URL: https://github.com/llvm/llvm-project/commit/e5fe6cc25195c9b1ad7b2aca0750bc69282b75c8
DIFF: https://github.com/llvm/llvm-project/commit/e5fe6cc25195c9b1ad7b2aca0750bc69282b75c8.diff
LOG: LLLexer.h - reduce SourceMgr.h include to SMLoc.h. NFC
We only need the SMLoc definition and the SourceMgr forward declaration.
Added:
Modified:
llvm/lib/AsmParser/LLLexer.h
Removed:
################################################################################
diff --git a/llvm/lib/AsmParser/LLLexer.h b/llvm/lib/AsmParser/LLLexer.h
index 9d93447d78ae..c97d9781c33b 100644
--- a/llvm/lib/AsmParser/LLLexer.h
+++ b/llvm/lib/AsmParser/LLLexer.h
@@ -16,12 +16,13 @@
#include "LLToken.h"
#include "llvm/ADT/APFloat.h"
#include "llvm/ADT/APSInt.h"
-#include "llvm/Support/SourceMgr.h"
+#include "llvm/Support/SMLoc.h"
#include <string>
namespace llvm {
class Type;
class SMDiagnostic;
+ class SourceMgr;
class LLVMContext;
class LLLexer {
More information about the llvm-commits
mailing list