diff options
author | Silviu Baranga <silviu.baranga@arm.com> | 2016-09-14 14:09:43 +0000 |
---|---|---|
committer | Silviu Baranga <silviu.baranga@arm.com> | 2016-09-14 14:09:43 +0000 |
commit | 0a020f0fb097c78c3547fb7bc0738a202a3af45c (patch) | |
tree | b0fa62af1a555905647eb2ad58c5e402dc1ee228 /llvm/lib/CodeGen/StackProtector.cpp | |
parent | a103d104e1e68cf5a0f227d7ea167122c0d4e128 (diff) | |
download | bcm5719-llvm-0a020f0fb097c78c3547fb7bc0738a202a3af45c.tar.gz bcm5719-llvm-0a020f0fb097c78c3547fb7bc0738a202a3af45c.zip |
[StackProtector] Use INITIALIZE_TM_PASS instead of INITIALIZE_PASS
in order to make sure that its TargetMachine constructor is
registered.
This allows us to run the PEI machine pass with MIR input
(see PR30324).
llvm-svn: 281474
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
-rw-r--r-- | llvm/lib/CodeGen/StackProtector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StackProtector.cpp b/llvm/lib/CodeGen/StackProtector.cpp index 89868e43aba..fa0611391f6 100644 --- a/llvm/lib/CodeGen/StackProtector.cpp +++ b/llvm/lib/CodeGen/StackProtector.cpp @@ -50,7 +50,7 @@ static cl::opt<bool> EnableSelectionDAGSP("enable-selectiondag-sp", cl::init(true), cl::Hidden); char StackProtector::ID = 0; -INITIALIZE_PASS(StackProtector, "stack-protector", "Insert stack protectors", +INITIALIZE_TM_PASS(StackProtector, "stack-protector", "Insert stack protectors", false, true) FunctionPass *llvm::createStackProtectorPass(const TargetMachine *TM) { |