mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
minor tidying up
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100702 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
00d139064e
commit
f88c856a47
@ -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…
x
Reference in New Issue
Block a user