diff options
author | Chris Lattner <sabre@nondot.org> | 2003-07-31 04:38:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-07-31 04:38:26 +0000 |
commit | f745a20deb40ba0113fe368efcba5393e9d3e99c (patch) | |
tree | b61a228223b04846e921ff723a90fa6b0fc9323c /utils/TableGen/CodeEmitterGen.cpp | |
parent | 14d7c59491347a2f8f29e120fd75a4cad42f68e7 (diff) |
Rename createEmitter to run because eventually all tablegen backends will
be subclasses of a common interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7445 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeEmitterGen.cpp')
-rw-r--r-- | utils/TableGen/CodeEmitterGen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp index 8805c7cab0..25bbe5bdbf 100644 --- a/utils/TableGen/CodeEmitterGen.cpp +++ b/utils/TableGen/CodeEmitterGen.cpp @@ -2,7 +2,7 @@ #include "Record.h" #include "CodeEmitterGen.h" -int CodeEmitterGen::createEmitter(std::ostream &o) { +bool CodeEmitterGen::run(std::ostream &o) { std::vector<Record*> Insts; const std::map<std::string, Record*> &Defs = Records.getDefs(); @@ -33,7 +33,7 @@ int CodeEmitterGen::createEmitter(std::ostream &o) { const RecordVal *InstVal = R->getValue("Inst"); if (!InstVal) { std::cerr << "No 'Inst' record found in target description file!\n"; - return 1; + return true; } Init *InitVal = InstVal->getValue(); @@ -229,5 +229,5 @@ int CodeEmitterGen::createEmitter(std::ostream &o) { << " }\n" << " return Value;\n" << "}\n"; - return 0; + return false; } |