1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

[flang] Revert "PoC for Flang Driver Plugins"

This patch has not been reviewed and was commited by accident.

This reverts commit 788a5d4afe6407e647454a9832a7b4a27fba06bf.
This commit is contained in:
Andrzej Warzynski 2021-07-01 08:27:31 +00:00
parent 6567b76038
commit 41a27c03c7
2 changed files with 0 additions and 16 deletions

View File

@ -18,7 +18,6 @@
#include "llvm/ADT/iterator_range.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/DynamicLibrary.h"
#include "llvm/Support/CommandLine.h"
#include <memory>
namespace llvm {
@ -121,10 +120,7 @@ namespace llvm {
public:
Add(StringRef Name, StringRef Desc)
: Entry(Name, Desc, CtorFn), Node(Entry) {
llvm::outs() << " -------------- (Registry) --------------\n";
llvm::outs() << " \tAdd :: " << Name << "\n";
add_node(&Node);
llvm::outs() << " ------------- (\\Registry) --------------\n";
}
};
};
@ -149,14 +145,8 @@ namespace llvm {
else \
Head = N; \
Tail = N; \
llvm::outs() << " REGISTRY_CLASS :: list >> \n"; \
for (const REGISTRY_CLASS::entry &plugin : REGISTRY_CLASS::entries()) { \
llvm::outs() << " " << plugin.getName() << " \t-- " << plugin.getDesc() << "\n"; \
} \
} \
template<typename T> typename Registry<T>::iterator Registry<T>::begin() { \
llvm::outs() << "iterator (head)\n"; \
llvm::outs() << Head << "\n"; \
return iterator(Head); \
} \
template REGISTRY_CLASS::node *Registry<REGISTRY_CLASS::type>::Head; \

View File

@ -149,18 +149,12 @@ DynamicLibrary DynamicLibrary::getPermanentLibrary(const char *FileName,
// ManagedStatic can be added from static constructors in HandleSet::DLOpen.
HandleSet& HS = *OpenedHandles;
printf(" -------- (getPermantentLibrary) --------\n");
printf(" get Lib: %s \n", FileName);
void *Handle = HandleSet::DLOpen(FileName, Err);
if (Handle != &Invalid) {
printf(" Handle != Invalid \n");
SmartScopedLock<true> Lock(*SymbolsMutex);
HS.AddLibrary(Handle, /*IsProcess*/ FileName == nullptr);
}
printf(" ------- (\\getPermantentLibrary) --------\n");
return DynamicLibrary(Handle);
}