Skip to content

Commit eeb4132

Browse files
authored
[NFC] Fix macro redefinition warning in NewPMDriver.cpp (#132854)
1 parent a6d3662 commit eeb4132

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/tools/opt/NewPMDriver.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ static void registerEPCallbacks(PassBuilder &PB) {
343343
#define HANDLE_EXTENSION(Ext) \
344344
llvm::PassPluginLibraryInfo get##Ext##PluginInfo();
345345
#include "llvm/Support/Extension.def"
346+
#undef HANDLE_EXTENSION
346347

347348
bool llvm::runPassPipeline(
348349
StringRef Arg0, Module &M, TargetMachine *TM, TargetLibraryInfoImpl *TLII,
@@ -456,6 +457,7 @@ bool llvm::runPassPipeline(
456457
#define HANDLE_EXTENSION(Ext) \
457458
get##Ext##PluginInfo().RegisterPassBuilderCallbacks(PB);
458459
#include "llvm/Support/Extension.def"
460+
#undef HANDLE_EXTENSION
459461

460462
// Specially handle the alias analysis manager so that we can register
461463
// a custom pipeline of AA passes with it.

0 commit comments

Comments
 (0)