Deleted Added
full compact
PluginLoader.cpp (208954) PluginLoader.cpp (218893)
1//===-- PluginLoader.cpp - Implement -load command line option ------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file implements the -load <plugin> command line option handler.
11//
12//===----------------------------------------------------------------------===//
13
14#define DONT_GET_PLUGIN_LOADER_OPTION
15#include "llvm/Support/ManagedStatic.h"
16#include "llvm/Support/PluginLoader.h"
17#include "llvm/Support/raw_ostream.h"
1//===-- PluginLoader.cpp - Implement -load command line option ------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file implements the -load <plugin> command line option handler.
11//
12//===----------------------------------------------------------------------===//
13
14#define DONT_GET_PLUGIN_LOADER_OPTION
15#include "llvm/Support/ManagedStatic.h"
16#include "llvm/Support/PluginLoader.h"
17#include "llvm/Support/raw_ostream.h"
18#include "llvm/System/DynamicLibrary.h"
19#include "llvm/System/Mutex.h"
18#include "llvm/Support/DynamicLibrary.h"
19#include "llvm/Support/Mutex.h"
20#include <vector>
21using namespace llvm;
22
23static ManagedStatic<std::vector<std::string> > Plugins;
24static ManagedStatic<sys::SmartMutex<true> > PluginsLock;
25
26void PluginLoader::operator=(const std::string &Filename) {
27 sys::SmartScopedLock<true> Lock(*PluginsLock);

--- 20 unchanged lines hidden ---
20#include <vector>
21using namespace llvm;
22
23static ManagedStatic<std::vector<std::string> > Plugins;
24static ManagedStatic<sys::SmartMutex<true> > PluginsLock;
25
26void PluginLoader::operator=(const std::string &Filename) {
27 sys::SmartScopedLock<true> Lock(*PluginsLock);

--- 20 unchanged lines hidden ---