mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
minor tidying up
llvm-svn: 100702
This commit is contained in:
parent
cc827ee016
commit
f927d33d8c
@ -25,7 +25,7 @@ namespace llvm {
|
||||
typedef void (*llvm_error_handler_t)(void *user_data,
|
||||
const std::string& reason);
|
||||
|
||||
/// llvm_instal_error_handler - Installs a new error handler to be used
|
||||
/// llvm_install_error_handler - Installs a new error handler to be used
|
||||
/// whenever a serious (non-recoverable) error is encountered by LLVM.
|
||||
///
|
||||
/// If you are using llvm_start_multithreaded, you should register the handler
|
||||
|
@ -1293,10 +1293,9 @@ void FunctionPassManager::add(Pass *P) {
|
||||
bool FunctionPassManager::run(Function &F) {
|
||||
if (F.isMaterializable()) {
|
||||
std::string errstr;
|
||||
if (F.Materialize(&errstr)) {
|
||||
if (F.Materialize(&errstr))
|
||||
llvm_report_error("Error reading bitcode file: " + errstr);
|
||||
}
|
||||
}
|
||||
return FPM->run(F);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user