move FlattenVariants out of AsmMatcherEmitter into a shared
authorChris Lattner <sabre@nondot.org>
Mon, 1 Nov 2010 01:07:14 +0000 (01:07 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 1 Nov 2010 01:07:14 +0000 (01:07 +0000)
commit4d43d0fd996a01c2cd21fd51082bc1bba783ef3c
tree298491062e0770e8dfce0b6ac96b2774916432f4
parent52de0ef9220e321224fe092f82303bc027e8f418
move FlattenVariants out of AsmMatcherEmitter into a shared
CodeGenInstruction::FlattenAsmStringVariants method.  Use it
to simplify the code in AsmWriterInst, which now no longer
needs to worry about variants.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117886 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/AsmMatcherEmitter.cpp
utils/TableGen/AsmWriterInst.cpp
utils/TableGen/CodeGenInstruction.cpp
utils/TableGen/CodeGenInstruction.h