summaryrefslogtreecommitdiff
path: root/include/llvm/Support/SourceMgr.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-06-21 03:41:50 +0000
committerChris Lattner <sabre@nondot.org>2009-06-21 03:41:50 +0000
commit8070ea3f068980d08cc10381f4c9369d19a91353 (patch)
tree90dce9a5009eec0859f57ddb959279d841635de9 /include/llvm/Support/SourceMgr.h
parent1e3a8a492471f5dc3f50452af9eb9a2dfb1aeb39 (diff)
downloadllvm-8070ea3f068980d08cc10381f4c9369d19a91353.tar.gz
llvm-8070ea3f068980d08cc10381f4c9369d19a91353.tar.bz2
llvm-8070ea3f068980d08cc10381f4c9369d19a91353.tar.xz
Rename TGSourceMgr -> SourceMgr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73844 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/SourceMgr.h')
-rw-r--r--include/llvm/Support/SourceMgr.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/llvm/Support/SourceMgr.h b/include/llvm/Support/SourceMgr.h
index d097afd1b9..953cf897b9 100644
--- a/include/llvm/Support/SourceMgr.h
+++ b/include/llvm/Support/SourceMgr.h
@@ -13,8 +13,8 @@
//
//===----------------------------------------------------------------------===//
-#ifndef TGSOURCEMGR_H
-#define TGSOURCEMGR_H
+#ifndef SUPPORT_SOURCEMGR_H
+#define SUPPORT_SOURCEMGR_H
#include <string>
#include <vector>
@@ -22,7 +22,7 @@
namespace llvm {
class MemoryBuffer;
- class TGSourceMgr;
+ class SourceMgr;
class SMLoc {
const char *Ptr;
@@ -42,9 +42,9 @@ public:
}
};
-/// TGSourceMgr - This owns the files read by tblgen, handles include stacks,
+/// SourceMgr - This owns the files read by tblgen, handles include stacks,
/// and handles printing of diagnostics.
-class TGSourceMgr {
+class SourceMgr {
struct SrcBuffer {
/// Buffer - The memory buffer for the file.
MemoryBuffer *Buffer;
@@ -57,11 +57,11 @@ class TGSourceMgr {
/// Buffers - This is all of the buffers that we are reading from.
std::vector<SrcBuffer> Buffers;
- TGSourceMgr(const TGSourceMgr&); // DO NOT IMPLEMENT
- void operator=(const TGSourceMgr&); // DO NOT IMPLEMENT
+ SourceMgr(const SourceMgr&); // DO NOT IMPLEMENT
+ void operator=(const SourceMgr&); // DO NOT IMPLEMENT
public:
- TGSourceMgr() {}
- ~TGSourceMgr();
+ SourceMgr() {}
+ ~SourceMgr();
const SrcBuffer &getBufferInfo(unsigned i) const {
assert(i < Buffers.size() && "Invalid Buffer ID!");