diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-05 22:58:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-05 22:58:54 +0000 |
commit | 200c57e8ea6456d5688307cfce3f4cbd8bf6ada7 (patch) | |
tree | f19fea0f416c09771cf979ba8a030ae957b54bf0 /utils/TableGen/DAGISelEmitter.h | |
parent | 443e3f9dd61b8d0974bb13d484195ce1a9b7536c (diff) | |
download | external_llvm-200c57e8ea6456d5688307cfce3f4cbd8bf6ada7.zip external_llvm-200c57e8ea6456d5688307cfce3f4cbd8bf6ada7.tar.gz external_llvm-200c57e8ea6456d5688307cfce3f4cbd8bf6ada7.tar.bz2 |
now that computing CodegenDAGPatterns doesn't implicitly print stuff
out, DAGISelEmitter can compute it in its ctor, which simplifies some code.
Now we can use CodegenDAGPatterns in other parts of tblgen that want access
to dag pattern info, woo!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45636 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DAGISelEmitter.h')
-rw-r--r-- | utils/TableGen/DAGISelEmitter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/DAGISelEmitter.h b/utils/TableGen/DAGISelEmitter.h index 804ebdb..0045a3a 100644 --- a/utils/TableGen/DAGISelEmitter.h +++ b/utils/TableGen/DAGISelEmitter.h @@ -24,9 +24,9 @@ namespace llvm { /// class DAGISelEmitter : public TableGenBackend { RecordKeeper &Records; - CodegenDAGPatterns *CGP; + CodegenDAGPatterns CGP; public: - DAGISelEmitter(RecordKeeper &R) : Records(R) {} + DAGISelEmitter(RecordKeeper &R) : Records(R), CGP(R) {} // run - Output the isel, returning true on failure. void run(std::ostream &OS); |