[Lexer] Allow LLLexer to be used as an API
authorWilliam S. Moses <gh@wsmoses.com>
Wed, 21 Apr 2021 01:59:45 +0000 (21:59 -0400)
committerWilliam S. Moses <gh@wsmoses.com>
Mon, 26 Apr 2021 16:43:14 +0000 (12:43 -0400)
Explose LLVM Lexer for usage externally as an API

Differential Revision: https://reviews.llvm.org/D100920

llvm/include/llvm/AsmParser/LLLexer.h [moved from llvm/lib/AsmParser/LLLexer.h with 100% similarity]
llvm/include/llvm/AsmParser/LLParser.h [moved from llvm/lib/AsmParser/LLParser.h with 100% similarity]
llvm/include/llvm/AsmParser/LLToken.h [moved from llvm/lib/AsmParser/LLToken.h with 100% similarity]
llvm/lib/AsmParser/LLLexer.cpp
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/AsmParser/Parser.cpp

index e9fb082..b882291 100644 (file)
@@ -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"
index d56fca1..e5017ce 100644 (file)
 //
 //===----------------------------------------------------------------------===//
 
-#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"
index b4be041..156fbbe 100644 (file)
@@ -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"