diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2016-01-20 15:48:27 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2016-01-20 15:48:27 +0000 |
commit | 77a177722f55d0f54d024fa8908dbb22891d80f7 (patch) | |
tree | df31051e532bcd91a8f96f472d916e9d21957885 /llvm/lib/Target/AMDGPU/SIAnnotateControlFlow.cpp | |
parent | 4b1472fb2b786411226c15e9050e62268eee8b1f (diff) | |
download | llvm-77a177722f55d0f54d024fa8908dbb22891d80f7.zip llvm-77a177722f55d0f54d024fa8908dbb22891d80f7.tar.gz llvm-77a177722f55d0f54d024fa8908dbb22891d80f7.tar.bz2 |
Correctly initialize SIAnnotateControlFlow
Reviewers: arsenm
Subscribers: arsenm, llvm-commits
Differential Revision: http://reviews.llvm.org/D16304
llvm-svn: 258319
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIAnnotateControlFlow.cpp')
-rw-r--r-- | llvm/lib/Target/AMDGPU/SIAnnotateControlFlow.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIAnnotateControlFlow.cpp b/llvm/lib/Target/AMDGPU/SIAnnotateControlFlow.cpp index fa4d24a..70e9e2d 100644 --- a/llvm/lib/Target/AMDGPU/SIAnnotateControlFlow.cpp +++ b/llvm/lib/Target/AMDGPU/SIAnnotateControlFlow.cpp @@ -44,8 +44,6 @@ static const char *const EndCfIntrinsic = "llvm.SI.end.cf"; class SIAnnotateControlFlow : public FunctionPass { - static char ID; - Type *Boolean; Type *Void; Type *Int64; @@ -90,6 +88,8 @@ class SIAnnotateControlFlow : public FunctionPass { void closeControlFlow(BasicBlock *BB); public: + static char ID; + SIAnnotateControlFlow(): FunctionPass(ID) { } @@ -112,6 +112,11 @@ public: } // end anonymous namespace +INITIALIZE_PASS_BEGIN(SIAnnotateControlFlow, DEBUG_TYPE, + "Annotate SI Control Flow", false, false) +INITIALIZE_PASS_END(SIAnnotateControlFlow, DEBUG_TYPE, + "Annotate SI Control Flow", false, false) + char SIAnnotateControlFlow::ID = 0; /// \brief Initialize all the types and constants used in the pass |