rename llvm::llvm_report_error -> llvm::report_fatal_error
llvm-svn: 100709
This commit is contained in:
@@ -619,8 +619,8 @@ getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
|
||||
MCSectionMachO::ParseSectionSpecifier(GV->getSection(), Segment, Section,
|
||||
TAA, StubSize);
|
||||
if (!ErrorCode.empty()) {
|
||||
// If invalid, report the error with llvm_report_error.
|
||||
llvm_report_error("Global variable '" + GV->getNameStr() +
|
||||
// If invalid, report the error with report_fatal_error.
|
||||
report_fatal_error("Global variable '" + GV->getNameStr() +
|
||||
"' has an invalid section specifier '" + GV->getSection()+
|
||||
"': " + ErrorCode + ".");
|
||||
// Fall back to dropping it into the data section.
|
||||
@@ -635,8 +635,8 @@ getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
|
||||
// If the user declared multiple globals with different section flags, we need
|
||||
// to reject it here.
|
||||
if (S->getTypeAndAttributes() != TAA || S->getStubSize() != StubSize) {
|
||||
// If invalid, report the error with llvm_report_error.
|
||||
llvm_report_error("Global variable '" + GV->getNameStr() +
|
||||
// If invalid, report the error with report_fatal_error.
|
||||
report_fatal_error("Global variable '" + GV->getNameStr() +
|
||||
"' section type or attributes does not match previous"
|
||||
" section specifier");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user