diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-09-06 23:05:38 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-09-06 23:05:38 +0000 |
commit | 92334e07cab5deef32cf7337fce04ab30c6314d8 (patch) | |
tree | 3fcb090a72f78294b3aead5a93017c2df042865e /llvm/lib/IR/PassRegistry.cpp | |
parent | d635eeb01a45d64960d2d95b97bc5a28fe846015 (diff) | |
download | bcm5719-llvm-92334e07cab5deef32cf7337fce04ab30c6314d8.tar.gz bcm5719-llvm-92334e07cab5deef32cf7337fce04ab30c6314d8.zip |
[Pass] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC).
llvm-svn: 312679
Diffstat (limited to 'llvm/lib/IR/PassRegistry.cpp')
-rw-r--r-- | llvm/lib/IR/PassRegistry.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/IR/PassRegistry.cpp b/llvm/lib/IR/PassRegistry.cpp index c0f6f07169f..b0f1a992872 100644 --- a/llvm/lib/IR/PassRegistry.cpp +++ b/llvm/lib/IR/PassRegistry.cpp @@ -14,8 +14,12 @@ #include "llvm/PassRegistry.h" #include "llvm/ADT/STLExtras.h" +#include "llvm/PassInfo.h" #include "llvm/PassSupport.h" #include "llvm/Support/ManagedStatic.h" +#include <cassert> +#include <memory> +#include <utility> using namespace llvm; @@ -33,7 +37,7 @@ PassRegistry *PassRegistry::getPassRegistry() { // Accessors // -PassRegistry::~PassRegistry() {} +PassRegistry::~PassRegistry() = default; const PassInfo *PassRegistry::getPassInfo(const void *TI) const { sys::SmartScopedReader<true> Guard(Lock); @@ -120,6 +124,6 @@ void PassRegistry::addRegistrationListener(PassRegistrationListener *L) { void PassRegistry::removeRegistrationListener(PassRegistrationListener *L) { sys::SmartScopedWriter<true> Guard(Lock); - auto I = find(Listeners, L); + auto I = llvm::find(Listeners, L); Listeners.erase(I); } |