diff options
author | Chris Lattner <sabre@nondot.org> | 2009-06-21 03:36:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-06-21 03:36:54 +0000 |
commit | 1b30e1ac453f9b7c650811020020030b204784fb (patch) | |
tree | 303df7dcf42076da47103183a8379ff4c7221681 | |
parent | 7719d0184a1ec678cd17202203f236f9590af96a (diff) | |
download | bcm5719-llvm-1b30e1ac453f9b7c650811020020030b204784fb.tar.gz bcm5719-llvm-1b30e1ac453f9b7c650811020020030b204784fb.zip |
move TGSourceMgr class out of TableGen into libsupport.
llvm-svn: 73842
-rw-r--r-- | llvm/include/llvm/Support/SourceMgr.h (renamed from llvm/utils/TableGen/TGSourceMgr.h) | 6 | ||||
-rw-r--r-- | llvm/lib/Support/SourceMgr.cpp (renamed from llvm/utils/TableGen/TGSourceMgr.cpp) | 8 | ||||
-rw-r--r-- | llvm/utils/TableGen/Record.h | 2 | ||||
-rw-r--r-- | llvm/utils/TableGen/TGLexer.cpp | 2 | ||||
-rw-r--r-- | llvm/utils/TableGen/TGParser.h | 2 |
5 files changed, 12 insertions, 8 deletions
diff --git a/llvm/utils/TableGen/TGSourceMgr.h b/llvm/include/llvm/Support/SourceMgr.h index 69fb74ca20c..60bf7801f4e 100644 --- a/llvm/utils/TableGen/TGSourceMgr.h +++ b/llvm/include/llvm/Support/SourceMgr.h @@ -1,4 +1,4 @@ -//===- TGSourceMgr.h - Manager for Source Buffers & Diagnostics -*- C++ -*-===// +//===- SourceMgr.h - Manager for Source Buffers & Diagnostics ---*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -7,7 +7,9 @@ // //===----------------------------------------------------------------------===// // -// This file declares the TGSourceMgr class. +// This file declares the SourceMgr class. This class is used as a simple +// substrate for diagnostics, #include handling, and other low level things for +// simple parsers. // //===----------------------------------------------------------------------===// diff --git a/llvm/utils/TableGen/TGSourceMgr.cpp b/llvm/lib/Support/SourceMgr.cpp index 42bc75246c9..e745207cff5 100644 --- a/llvm/utils/TableGen/TGSourceMgr.cpp +++ b/llvm/lib/Support/SourceMgr.cpp @@ -1,4 +1,4 @@ -//===- TGSourceMgr.cpp - Manager for Source Buffers & Diagnostics ---------===// +//===- SourceMgr.cpp - Manager for Simple Source Buffers & Diagnostics ----===// // // The LLVM Compiler Infrastructure // @@ -7,11 +7,13 @@ // //===----------------------------------------------------------------------===// // -// This file implements the TGSourceMgr class. +// This file implements the SourceMgr class. This class is used as a simple +// substrate for diagnostics, #include handling, and other low level things for +// simple parsers. // //===----------------------------------------------------------------------===// -#include "TGSourceMgr.h" +#include "llvm/Support/SourceMgr.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/raw_ostream.h" using namespace llvm; diff --git a/llvm/utils/TableGen/Record.h b/llvm/utils/TableGen/Record.h index ac06cae809d..18b10eabdc0 100644 --- a/llvm/utils/TableGen/Record.h +++ b/llvm/utils/TableGen/Record.h @@ -15,7 +15,7 @@ #ifndef RECORD_H #define RECORD_H -#include "TGSourceMgr.h" +#include "llvm/Support/SourceMgr.h" #include "llvm/Support/DataTypes.h" #include <map> #include <ostream> diff --git a/llvm/utils/TableGen/TGLexer.cpp b/llvm/utils/TableGen/TGLexer.cpp index 758d499a8b5..1941a599e8b 100644 --- a/llvm/utils/TableGen/TGLexer.cpp +++ b/llvm/utils/TableGen/TGLexer.cpp @@ -12,7 +12,7 @@ //===----------------------------------------------------------------------===// #include "TGLexer.h" -#include "TGSourceMgr.h" +#include "llvm/Support/SourceMgr.h" #include "llvm/Support/Streams.h" #include "llvm/Support/MemoryBuffer.h" #include <ostream> diff --git a/llvm/utils/TableGen/TGParser.h b/llvm/utils/TableGen/TGParser.h index 3af467d16ab..c618708ee97 100644 --- a/llvm/utils/TableGen/TGParser.h +++ b/llvm/utils/TableGen/TGParser.h @@ -15,7 +15,7 @@ #define TGPARSER_H #include "TGLexer.h" -#include "TGSourceMgr.h" +#include "llvm/Support/SourceMgr.h" #include <map> namespace llvm { |