[llvm] 494e771 - [Lexer] Allow LLLexer to be used as an API
William S. Moses via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 26 09:44:00 PDT 2021
Author: William S. Moses
Date: 2021-04-26T12:43:14-04:00
New Revision: 494e77138c2e53961c43fe6957142d4f90034f98
URL: https://github.com/llvm/llvm-project/commit/494e77138c2e53961c43fe6957142d4f90034f98
DIFF: https://github.com/llvm/llvm-project/commit/494e77138c2e53961c43fe6957142d4f90034f98.diff
LOG: [Lexer] Allow LLLexer to be used as an API
Explose LLVM Lexer for usage externally as an API
Differential Revision: https://reviews.llvm.org/D100920
Added:
llvm/include/llvm/AsmParser/LLLexer.h
llvm/include/llvm/AsmParser/LLParser.h
llvm/include/llvm/AsmParser/LLToken.h
Modified:
llvm/lib/AsmParser/LLLexer.cpp
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/AsmParser/Parser.cpp
Removed:
llvm/lib/AsmParser/LLLexer.h
llvm/lib/AsmParser/LLParser.h
llvm/lib/AsmParser/LLToken.h
################################################################################
diff --git a/llvm/lib/AsmParser/LLLexer.h b/llvm/include/llvm/AsmParser/LLLexer.h
similarity index 100%
rename from llvm/lib/AsmParser/LLLexer.h
rename to llvm/include/llvm/AsmParser/LLLexer.h
diff --git a/llvm/lib/AsmParser/LLParser.h b/llvm/include/llvm/AsmParser/LLParser.h
similarity index 100%
rename from llvm/lib/AsmParser/LLParser.h
rename to llvm/include/llvm/AsmParser/LLParser.h
diff --git a/llvm/lib/AsmParser/LLToken.h b/llvm/include/llvm/AsmParser/LLToken.h
similarity index 100%
rename from llvm/lib/AsmParser/LLToken.h
rename to llvm/include/llvm/AsmParser/LLToken.h
diff --git a/llvm/lib/AsmParser/LLLexer.cpp b/llvm/lib/AsmParser/LLLexer.cpp
index e9fb0820a839..b882291e935c 100644
--- a/llvm/lib/AsmParser/LLLexer.cpp
+++ b/llvm/lib/AsmParser/LLLexer.cpp
@@ -10,7 +10,7 @@
//
//===----------------------------------------------------------------------===//
-#include "LLLexer.h"
+#include "llvm/AsmParser/LLLexer.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringExtras.h"
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index d56fca1f21fe..e5017cea859f 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -10,13 +10,13 @@
//
//===----------------------------------------------------------------------===//
-#include "LLParser.h"
-#include "LLToken.h"
+#include "llvm/AsmParser/LLParser.h"
#include "llvm/ADT/APSInt.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/None.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallPtrSet.h"
+#include "llvm/AsmParser/LLToken.h"
#include "llvm/AsmParser/SlotMapping.h"
#include "llvm/BinaryFormat/Dwarf.h"
#include "llvm/IR/Argument.h"
diff --git a/llvm/lib/AsmParser/Parser.cpp b/llvm/lib/AsmParser/Parser.cpp
index b4be041d6212..156fbbe71adb 100644
--- a/llvm/lib/AsmParser/Parser.cpp
+++ b/llvm/lib/AsmParser/Parser.cpp
@@ -11,8 +11,8 @@
//===----------------------------------------------------------------------===//
#include "llvm/AsmParser/Parser.h"
-#include "LLParser.h"
#include "llvm/ADT/STLExtras.h"
+#include "llvm/AsmParser/LLParser.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/ModuleSummaryIndex.h"
#include "llvm/Support/MemoryBuffer.h"
More information about the llvm-commits
mailing list