diff options
author | Chris Lattner <sabre@nondot.org> | 2009-06-21 03:39:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-06-21 03:39:35 +0000 |
commit | 1e3a8a492471f5dc3f50452af9eb9a2dfb1aeb39 (patch) | |
tree | 9807365601608606d75dde97683796089a20187c /utils/TableGen/Record.h | |
parent | 099e198ae84c1a6cfe2a7c79ee9f47fa67caac8f (diff) | |
download | external_llvm-1e3a8a492471f5dc3f50452af9eb9a2dfb1aeb39.zip external_llvm-1e3a8a492471f5dc3f50452af9eb9a2dfb1aeb39.tar.gz external_llvm-1e3a8a492471f5dc3f50452af9eb9a2dfb1aeb39.tar.bz2 |
rename TGLoc -> SMLoc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73843 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/Record.h')
-rw-r--r-- | utils/TableGen/Record.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index 18b10ea..5f45ea0 100644 --- a/utils/TableGen/Record.h +++ b/utils/TableGen/Record.h @@ -1214,19 +1214,19 @@ inline std::ostream &operator<<(std::ostream &OS, const RecordVal &RV) { class Record { std::string Name; - TGLoc Loc; + SMLoc Loc; std::vector<std::string> TemplateArgs; std::vector<RecordVal> Values; std::vector<Record*> SuperClasses; public: - explicit Record(const std::string &N, TGLoc loc) : Name(N), Loc(loc) {} + explicit Record(const std::string &N, SMLoc loc) : Name(N), Loc(loc) {} ~Record() {} const std::string &getName() const { return Name; } void setName(const std::string &Name); // Also updates RecordKeeper. - TGLoc getLoc() const { return Loc; } + SMLoc getLoc() const { return Loc; } const std::vector<std::string> &getTemplateArgs() const { return TemplateArgs; @@ -1381,7 +1381,7 @@ struct MultiClass { void dump() const; - MultiClass(const std::string &Name, TGLoc Loc) : Rec(Name, Loc) {} + MultiClass(const std::string &Name, SMLoc Loc) : Rec(Name, Loc) {} }; class RecordKeeper { @@ -1461,12 +1461,12 @@ struct LessRecordFieldName { class TGError { - TGLoc Loc; + SMLoc Loc; std::string Message; public: - TGError(TGLoc loc, const std::string &message) : Loc(loc), Message(message) {} + TGError(SMLoc loc, const std::string &message) : Loc(loc), Message(message) {} - TGLoc getLoc() const { return Loc; } + SMLoc getLoc() const { return Loc; } const std::string &getMessage() const { return Message; } }; @@ -1475,7 +1475,7 @@ std::ostream &operator<<(std::ostream &OS, const RecordKeeper &RK); extern RecordKeeper Records; -void PrintError(TGLoc ErrorLoc, const std::string &Msg); +void PrintError(SMLoc ErrorLoc, const std::string &Msg); } // End llvm namespace |