projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a103d10
)
[StackProtector] Use INITIALIZE_TM_PASS instead of INITIALIZE_PASS
author
Silviu Baranga
<silviu.baranga@arm.com>
Wed, 14 Sep 2016 14:09:43 +0000
(14:09 +0000)
committer
Silviu Baranga
<silviu.baranga@arm.com>
Wed, 14 Sep 2016 14:09:43 +0000
(14:09 +0000)
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
llvm/lib/CodeGen/StackProtector.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/StackProtector.cpp
b/llvm/lib/CodeGen/StackProtector.cpp
index
89868e4
..
fa06113
100644
(file)
--- 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) {