summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CompilerDriver/Plugin.cpp
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-07-23 03:42:55 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-07-23 03:42:55 +0000
commit1e5d7c6e82f96fbfb62baae27b376f047c804ded (patch)
tree62491595be269a5e96800fdc234f73e7b2983aae /llvm/lib/CompilerDriver/Plugin.cpp
parent5b9a1ea9c67dcd1078d60a39cd299b43455607ec (diff)
downloadbcm5719-llvm-1e5d7c6e82f96fbfb62baae27b376f047c804ded.tar.gz
bcm5719-llvm-1e5d7c6e82f96fbfb62baae27b376f047c804ded.zip
Get rid of exceptions in llvmc.
llvmc can be now compiled with llvm-gcc on Windows. llvm-svn: 109215
Diffstat (limited to 'llvm/lib/CompilerDriver/Plugin.cpp')
-rw-r--r--llvm/lib/CompilerDriver/Plugin.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/llvm/lib/CompilerDriver/Plugin.cpp b/llvm/lib/CompilerDriver/Plugin.cpp
index 0fdfef4c6a2..c06bda3eff6 100644
--- a/llvm/lib/CompilerDriver/Plugin.cpp
+++ b/llvm/lib/CompilerDriver/Plugin.cpp
@@ -62,17 +62,22 @@ namespace llvmc {
pluginListInitialized = false;
}
- void PluginLoader::RunInitialization(LanguageMap& langMap,
+ int PluginLoader::RunInitialization(LanguageMap& langMap,
CompilationGraph& graph) const
{
llvm::sys::SmartScopedLock<true> Lock(*PluginMutex);
for (PluginList::iterator B = Plugins.begin(), E = Plugins.end();
B != E; ++B) {
const BasePlugin* BP = *B;
- BP->PreprocessOptions();
- BP->PopulateLanguageMap(langMap);
- BP->PopulateCompilationGraph(graph);
+ if (int ret = BP->PreprocessOptions())
+ return ret;
+ if (int ret = BP->PopulateLanguageMap(langMap))
+ return ret;
+ if (int ret = BP->PopulateCompilationGraph(graph))
+ return ret;
}
+
+ return 0;
}
}
OpenPOWER on IntegriCloud