aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CompilerDriver/Plugin.h
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2008-11-17 17:30:25 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2008-11-17 17:30:25 +0000
commiteb71ecf2a8f380206bf8a9e27e6e7855730c88e4 (patch)
tree0fe26a6f8a9013fba98fe980595413fce6e3b405 /include/llvm/CompilerDriver/Plugin.h
parent973b3a34fa0c0d2244cd271a49b47b2f029d44f5 (diff)
downloadexternal_llvm-eb71ecf2a8f380206bf8a9e27e6e7855730c88e4.tar.gz
external_llvm-eb71ecf2a8f380206bf8a9e27e6e7855730c88e4.tar.bz2
external_llvm-eb71ecf2a8f380206bf8a9e27e6e7855730c88e4.zip
Support dependencies between plugins by priority-sorting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59449 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CompilerDriver/Plugin.h')
-rw-r--r--include/llvm/CompilerDriver/Plugin.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CompilerDriver/Plugin.h b/include/llvm/CompilerDriver/Plugin.h
index 1dc0df9d55..5426ac73cd 100644
--- a/include/llvm/CompilerDriver/Plugin.h
+++ b/include/llvm/CompilerDriver/Plugin.h
@@ -24,6 +24,11 @@ namespace llvmc {
/// BasePlugin - An abstract base class for all LLVMC plugins.
struct BasePlugin {
+ /// Priority - Plugin priority, useful for handling dependencies
+ /// between plugins. Plugins with lower priorities are loaded
+ /// first.
+ virtual int Priority() const = 0;
+
/// PopulateLanguageMap - The auto-generated function that fills in
/// the language map (map from file extensions to language names).
virtual void PopulateLanguageMap(LanguageMap&) const = 0;