mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 11:06:33 +00:00
[NFC][LLVM] Change initialize<PassName>PassOnce
to return void (#134500)
- The return value of these functions (called using `llvm::call_once`) is never used, so make these functions return void.
This commit is contained in:
parent
20eb60d3f2
commit
bb1f32ded0
@ -36,7 +36,7 @@ namespace llvm {
|
||||
class Pass;
|
||||
|
||||
#define INITIALIZE_PASS_BEGIN(passName, arg, name, cfg, analysis) \
|
||||
static void *initialize##passName##PassOnce(PassRegistry &Registry) {
|
||||
static void initialize##passName##PassOnce(PassRegistry &Registry) {
|
||||
|
||||
#define INITIALIZE_PASS_DEPENDENCY(depName) initialize##depName##Pass(Registry);
|
||||
|
||||
@ -45,7 +45,6 @@ class Pass;
|
||||
name, arg, &passName::ID, \
|
||||
PassInfo::NormalCtor_t(callDefaultCtor<passName>), cfg, analysis); \
|
||||
Registry.registerPass(*PI, true); \
|
||||
return PI; \
|
||||
} \
|
||||
static llvm::once_flag Initialize##passName##PassFlag; \
|
||||
void llvm::initialize##passName##Pass(PassRegistry &Registry) { \
|
||||
|
Loading…
x
Reference in New Issue
Block a user