From f657da2e4896732f306a9e62261418112e7337ce Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 2 May 2012 17:32:48 +0000 Subject: [PATCH] Move llvm-tblgen's StringMatcher into the TableGen library so it can be used by clang-tblgen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156000 91177308-0d34-0410-b5e6-96231b3b80d8 --- {utils => include/llvm}/TableGen/StringMatcher.h | 0 lib/TableGen/CMakeLists.txt | 1 + {utils => lib}/TableGen/StringMatcher.cpp | 2 +- utils/TableGen/AsmMatcherEmitter.cpp | 2 +- utils/TableGen/CMakeLists.txt | 1 - utils/TableGen/IntrinsicEmitter.cpp | 2 +- 6 files changed, 4 insertions(+), 4 deletions(-) rename {utils => include/llvm}/TableGen/StringMatcher.h (100%) rename {utils => lib}/TableGen/StringMatcher.cpp (99%) diff --git a/utils/TableGen/StringMatcher.h b/include/llvm/TableGen/StringMatcher.h similarity index 100% rename from utils/TableGen/StringMatcher.h rename to include/llvm/TableGen/StringMatcher.h diff --git a/lib/TableGen/CMakeLists.txt b/lib/TableGen/CMakeLists.txt index 82f72b03eef..ba7bf14e5dc 100644 --- a/lib/TableGen/CMakeLists.txt +++ b/lib/TableGen/CMakeLists.txt @@ -6,6 +6,7 @@ add_llvm_library(LLVMTableGen Error.cpp Main.cpp Record.cpp + StringMatcher.cpp TableGenAction.cpp TableGenBackend.cpp TGLexer.cpp diff --git a/utils/TableGen/StringMatcher.cpp b/lib/TableGen/StringMatcher.cpp similarity index 99% rename from utils/TableGen/StringMatcher.cpp rename to lib/TableGen/StringMatcher.cpp index 6aedcbf458a..0ce626d4b19 100644 --- a/utils/TableGen/StringMatcher.cpp +++ b/lib/TableGen/StringMatcher.cpp @@ -11,7 +11,7 @@ // //===----------------------------------------------------------------------===// -#include "StringMatcher.h" +#include "llvm/TableGen/StringMatcher.h" #include "llvm/Support/raw_ostream.h" #include using namespace llvm; diff --git a/utils/TableGen/AsmMatcherEmitter.cpp b/utils/TableGen/AsmMatcherEmitter.cpp index 837516882ea..0cb86d03d72 100644 --- a/utils/TableGen/AsmMatcherEmitter.cpp +++ b/utils/TableGen/AsmMatcherEmitter.cpp @@ -98,7 +98,6 @@ #include "AsmMatcherEmitter.h" #include "CodeGenTarget.h" -#include "StringMatcher.h" #include "StringToOffsetTable.h" #include "llvm/ADT/OwningPtr.h" #include "llvm/ADT/PointerUnion.h" @@ -111,6 +110,7 @@ #include "llvm/Support/ErrorHandling.h" #include "llvm/TableGen/Error.h" #include "llvm/TableGen/Record.h" +#include "llvm/TableGen/StringMatcher.h" #include #include using namespace llvm; diff --git a/utils/TableGen/CMakeLists.txt b/utils/TableGen/CMakeLists.txt index 2b70f1c52bd..c5585f5eaa3 100644 --- a/utils/TableGen/CMakeLists.txt +++ b/utils/TableGen/CMakeLists.txt @@ -27,7 +27,6 @@ add_tablegen(llvm-tblgen LLVM PseudoLoweringEmitter.cpp RegisterInfoEmitter.cpp SetTheory.cpp - StringMatcher.cpp SubtargetEmitter.cpp TGValueTypes.cpp TableGen.cpp diff --git a/utils/TableGen/IntrinsicEmitter.cpp b/utils/TableGen/IntrinsicEmitter.cpp index 8e1bae8c1f0..05ba5d2490e 100644 --- a/utils/TableGen/IntrinsicEmitter.cpp +++ b/utils/TableGen/IntrinsicEmitter.cpp @@ -13,8 +13,8 @@ #include "CodeGenTarget.h" #include "IntrinsicEmitter.h" -#include "StringMatcher.h" #include "llvm/TableGen/Record.h" +#include "llvm/TableGen/StringMatcher.h" #include "llvm/ADT/StringExtras.h" #include using namespace llvm; -- 2.34.1