OSDN Git Service

[Hexagon] Do not create passes in the constructor of HexagonPassConfig
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Fri, 27 May 2016 20:48:39 +0000 (20:48 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Fri, 27 May 2016 20:48:39 +0000 (20:48 +0000)
commit8e211bbca8c3538cfad31e173216dd60b842154d
treec739cddcb6d22fd612858a00bd139d3f0128e11f
parentcd543d7ad6019c48ef38879589f27fb08bb83045
[Hexagon] Do not create passes in the constructor of HexagonPassConfig

When running mir tests, a pass created in that constructor would not be
freed, leading to memory leaks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271043 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Hexagon/HexagonTargetMachine.cpp