1
0
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:
Chris Lattner 2010-04-07 22:41:29 +00:00
parent cc827ee016
commit f927d33d8c
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -1293,9 +1293,8 @@ 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);
}