commit | 7d0dde023f8f0a55c4088a659582dc1616d17d1c | [log] [tgz] |
---|---|---|
author | Matthias Braun <matze@braunis.de> | Tue May 30 21:36:41 2017 +0000 |
committer | Matthias Braun <matze@braunis.de> | Tue May 30 21:36:41 2017 +0000 |
tree | 3c52cae318d125647b899b115e32c0423f8fc37e | |
parent | 837e2e977f46721745805dbce8a08fbb40c066b9 [diff] |
TargetPassConfig: Keep a reference to an LLVMTargetMachine; NFC TargetPassConfig is not useful for targets that do not use the CodeGen library, so we may just as well store a pointer to an LLVMTargetMachine instead of just to a TargetMachine. While at it, also change the constructor to take a reference instead of a pointer as the TM must not be nullptr. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304247 91177308-0d34-0410-b5e6-96231b3b80d8