summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lib/IR/PassRegistry.cpp
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2018-04-06 14:26:03 +0000
committerpatrick <patrick@openbsd.org>2018-04-06 14:26:03 +0000
commitbdabc2f19ffb9e20600dad6e8a300842a7bda50e (patch)
treec50e7b2e5449b074651bb82a58517a8ebc4a8cf7 /gnu/llvm/lib/IR/PassRegistry.cpp
parentPrint a 'p' flag for file descriptors that were opened after pledge(2). (diff)
downloadwireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.tar.xz
wireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.zip
Import LLVM 6.0.1 release including clang, lld and lldb.
"where is the kaboom?" deraadt@
Diffstat (limited to 'gnu/llvm/lib/IR/PassRegistry.cpp')
-rw-r--r--gnu/llvm/lib/IR/PassRegistry.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/llvm/lib/IR/PassRegistry.cpp b/gnu/llvm/lib/IR/PassRegistry.cpp
index c0f6f07169f..b0f1a992872 100644
--- a/gnu/llvm/lib/IR/PassRegistry.cpp
+++ b/gnu/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);
}