diff options
author | Chris Lattner <sabre@nondot.org> | 2007-11-22 20:51:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-11-22 20:51:34 +0000 |
commit | bf8644ca1fb960e94d14428adbab8277679e2a9d (patch) | |
tree | 3cb51b193bd09b88fef424b4687c0f67187e610d /utils/TableGen/Record.cpp | |
parent | f460165a4c1bf4bc762f9b3f12b9ed284b89cc99 (diff) | |
download | external_llvm-bf8644ca1fb960e94d14428adbab8277679e2a9d.zip external_llvm-bf8644ca1fb960e94d14428adbab8277679e2a9d.tar.gz external_llvm-bf8644ca1fb960e94d14428adbab8277679e2a9d.tar.bz2 |
eliminate a bunch of print methods that are duplicate with the getAsString() method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44275 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/Record.cpp')
-rw-r--r-- | utils/TableGen/Record.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/utils/TableGen/Record.cpp b/utils/TableGen/Record.cpp index d7eb98a..9d14bc0 100644 --- a/utils/TableGen/Record.cpp +++ b/utils/TableGen/Record.cpp @@ -155,10 +155,6 @@ std::string ListRecTy::getAsString() const { return "list<" + Ty->getAsString() + ">"; } -void ListRecTy::print(std::ostream &OS) const { - OS << "list<" << *Ty << ">"; -} - Init *ListRecTy::convertValue(ListInit *LI) { std::vector<Init*> Elements; @@ -209,10 +205,6 @@ std::string RecordRecTy::getAsString() const { return Rec->getName(); } -void RecordRecTy::print(std::ostream &OS) const { - OS << Rec->getName(); -} - Init *RecordRecTy::convertValue(DefInit *DI) { // Ensure that DI is a subclass of Rec. if (!DI->getDef()->isSubClassOf(Rec)) |