aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-06-21 03:36:54 +0000
committerChris Lattner <sabre@nondot.org>2009-06-21 03:36:54 +0000
commit099e198ae84c1a6cfe2a7c79ee9f47fa67caac8f (patch)
tree8de47c36016cb9a098f87d7e74b19b3ed13533db
parente372333597fa2b59469182c5aa8d2296fdbf2847 (diff)
move TGSourceMgr class out of TableGen into libsupport.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73842 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/SourceMgr.h (renamed from utils/TableGen/TGSourceMgr.h)6
-rw-r--r--lib/Support/SourceMgr.cpp (renamed from utils/TableGen/TGSourceMgr.cpp)8
-rw-r--r--utils/TableGen/Record.h2
-rw-r--r--utils/TableGen/TGLexer.cpp2
-rw-r--r--utils/TableGen/TGParser.h2
5 files changed, 12 insertions, 8 deletions
diff --git a/utils/TableGen/TGSourceMgr.h b/include/llvm/Support/SourceMgr.h
index 69fb74ca20..60bf7801f4 100644
--- a/utils/TableGen/TGSourceMgr.h
+++ b/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/utils/TableGen/TGSourceMgr.cpp b/lib/Support/SourceMgr.cpp
index 42bc75246c..e745207cff 100644
--- a/utils/TableGen/TGSourceMgr.cpp
+++ b/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/utils/TableGen/Record.h b/utils/TableGen/Record.h
index ac06cae809..18b10eabdc 100644
--- a/utils/TableGen/Record.h
+++ b/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/utils/TableGen/TGLexer.cpp b/utils/TableGen/TGLexer.cpp
index 758d499a8b..1941a599e8 100644
--- a/utils/TableGen/TGLexer.cpp
+++ b/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/utils/TableGen/TGParser.h b/utils/TableGen/TGParser.h
index 3af467d16a..c618708ee9 100644
--- a/utils/TableGen/TGParser.h
+++ b/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 {