Remove exception handling usage from tblgen.
authorJoerg Sonnenberger <joerg@bec.de>
Thu, 25 Oct 2012 20:33:17 +0000 (20:33 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Thu, 25 Oct 2012 20:33:17 +0000 (20:33 +0000)
commit635debe85beb7fbb54590f20b9720d99f938cb84
tree1b428d8ab62c85dba233fbbc6c02d89c41be3d82
parentf1ecb7c62c8609208ce7c6ed8ae9e4a54c61a697
Remove exception handling usage from tblgen.

Most places can use PrintFatalError as the unwinding mechanism was not
used for anything other than printing the error. The single exception
was CodeGenDAGPatterns.cpp, where intermediate errors during type
resolution were ignored to simplify incremental platform development.
This use is replaced by an error flag in TreePattern and bailout earlier
in various places if it is set.

llvm-svn: 166712
32 files changed:
llvm/include/llvm/TableGen/Error.h
llvm/lib/TableGen/CMakeLists.txt
llvm/lib/TableGen/Error.cpp
llvm/lib/TableGen/Main.cpp
llvm/lib/TableGen/Makefile
llvm/lib/TableGen/Record.cpp
llvm/utils/TableGen/AsmMatcherEmitter.cpp
llvm/utils/TableGen/AsmWriterEmitter.cpp
llvm/utils/TableGen/AsmWriterInst.cpp
llvm/utils/TableGen/CMakeLists.txt
llvm/utils/TableGen/CallingConvEmitter.cpp
llvm/utils/TableGen/CodeGenDAGPatterns.cpp
llvm/utils/TableGen/CodeGenDAGPatterns.h
llvm/utils/TableGen/CodeGenInstruction.cpp
llvm/utils/TableGen/CodeGenInstruction.h
llvm/utils/TableGen/CodeGenMapTable.cpp
llvm/utils/TableGen/CodeGenRegisters.cpp
llvm/utils/TableGen/CodeGenSchedule.cpp
llvm/utils/TableGen/CodeGenTarget.cpp
llvm/utils/TableGen/CodeGenTarget.h
llvm/utils/TableGen/DAGISelMatcherGen.cpp
llvm/utils/TableGen/DisassemblerEmitter.cpp
llvm/utils/TableGen/EDEmitter.cpp
llvm/utils/TableGen/FastISelEmitter.cpp
llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
llvm/utils/TableGen/InstrInfoEmitter.cpp
llvm/utils/TableGen/IntrinsicEmitter.cpp
llvm/utils/TableGen/Makefile
llvm/utils/TableGen/PseudoLoweringEmitter.cpp
llvm/utils/TableGen/RegisterInfoEmitter.cpp
llvm/utils/TableGen/SetTheory.cpp
llvm/utils/TableGen/SubtargetEmitter.cpp