X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FPass.h;h=3c4d838a465268f42e82a989e84d29bee35140e5;hb=00552e3875ee5f382db6c98286a241a7d0efe1b8;hp=30c864c5231345f39daa1f7df78f2c52d28ab488;hpb=4e0cc51d7974029aa2bbffce08e2c878f529f98a;p=oota-llvm.git diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index 30c864c5231..3c4d838a465 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -29,9 +29,7 @@ #ifndef LLVM_PASS_H #define LLVM_PASS_H -#include "llvm/Support/CBindingWrapping.h" #include "llvm/Support/Compiler.h" -#include "llvm-c/Core.h" #include namespace llvm { @@ -85,8 +83,8 @@ class Pass { AnalysisResolver *Resolver; // Used to resolve analysis const void *PassID; PassKind Kind; - void operator=(const Pass&) LLVM_DELETED_FUNCTION; - Pass(const Pass &) LLVM_DELETED_FUNCTION; + void operator=(const Pass&) = delete; + Pass(const Pass &) = delete; public: explicit Pass(PassKind K, char &pid) @@ -252,7 +250,7 @@ public: explicit ModulePass(char &pid) : Pass(PT_Module, pid) {} // Force out-of-line virtual method. - virtual ~ModulePass(); + ~ModulePass() override; }; @@ -281,7 +279,7 @@ public: : ModulePass(pid) {} // Force out-of-line virtual method. - virtual ~ImmutablePass(); + ~ImmutablePass() override; }; //===----------------------------------------------------------------------===// @@ -371,9 +369,6 @@ protected: /// @brief This is the storage for the -time-passes option. extern bool TimePassesIsEnabled; -// Create wrappers for C Binding types (see CBindingWrapping.h). -DEFINE_SIMPLE_CONVERSION_FUNCTIONS(Pass, LLVMPassRef) - } // End llvm namespace // Include support files that contain important APIs commonly used by Passes,