Split the impl of CodeGenInstruction out to its own .cpp file, add a getName() accessor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45645 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/TableGen/CodeGenInstruction.h b/utils/TableGen/CodeGenInstruction.h
index 249c1df..4f776ca 100644
--- a/utils/TableGen/CodeGenInstruction.h
+++ b/utils/TableGen/CodeGenInstruction.h
@@ -32,7 +32,11 @@
/// AsmString - The format string used to emit a .s file for the
/// instruction.
std::string AsmString;
-
+
+ /// getName - Return the contents of the instruction Name field if set,
+ /// otherwise return the name of the def.
+ std::string getName() const;
+
/// OperandInfo - The information we keep track of for each operand in the
/// operand list for a tablegen instruction.
struct OperandInfo {