summaryrefslogtreecommitdiff
path: root/utils/TableGen/CodeEmitterGen.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-07-29 23:00:08 +0000
committerChris Lattner <sabre@nondot.org>2003-07-29 23:00:08 +0000
commit30709543d2463948d2b6e30a4411a29940cfde69 (patch)
tree10f7b1a546b89586f507066c3a39f5d50b25f335 /utils/TableGen/CodeEmitterGen.h
parent92aa8ca9c5e749a010c33baff633343a48dcfec1 (diff)
downloadllvm-30709543d2463948d2b6e30a4411a29940cfde69.tar.gz
llvm-30709543d2463948d2b6e30a4411a29940cfde69.tar.bz2
llvm-30709543d2463948d2b6e30a4411a29940cfde69.tar.xz
Don't crash if there is no Inst class in the tablegen file!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7402 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeEmitterGen.h')
-rw-r--r--utils/TableGen/CodeEmitterGen.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/CodeEmitterGen.h b/utils/TableGen/CodeEmitterGen.h
index 098816a144..cf000c47b5 100644
--- a/utils/TableGen/CodeEmitterGen.h
+++ b/utils/TableGen/CodeEmitterGen.h
@@ -15,7 +15,7 @@ struct CodeEmitterGen {
public:
CodeEmitterGen(RecordKeeper &R) : Records(R) {}
- void createEmitter(std::ostream &o);
+ int createEmitter(std::ostream &o);
void emitMachineOpEmitter(std::ostream &o, const std::string &Namespace);
void emitGetValueBit(std::ostream &o, const std::string &Namespace);
};