move the #include for the generated code into the isel class body so we
can use/define class methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23339 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
index e342d71..df74246 100644
--- a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
+++ b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
@@ -97,10 +97,12 @@
virtual const char *getPassName() const {
return "PowerPC DAG->DAG Pattern Instruction Selection";
}
+
+// Include the pieces autogenerated from the target description.
+#include "PPC32GenDAGISel.inc"
};
}
-#include "PPC32GenDAGISel.inc"
/// getGlobalBaseReg - Output the instructions required to put the
/// base address to use for accessing globals into a register.