mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
Remove all remaining uses of Value::getNameStr().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144648 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -358,9 +358,9 @@ getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
|
||||
TAA, TAAParsed, StubSize);
|
||||
if (!ErrorCode.empty()) {
|
||||
// If invalid, report the error with report_fatal_error.
|
||||
report_fatal_error("Global variable '" + GV->getNameStr() +
|
||||
"' has an invalid section specifier '" + GV->getSection()+
|
||||
"': " + ErrorCode + ".");
|
||||
report_fatal_error("Global variable '" + GV->getName() +
|
||||
"' has an invalid section specifier '" +
|
||||
GV->getSection() + "': " + ErrorCode + ".");
|
||||
// Fall back to dropping it into the data section.
|
||||
return DataSection;
|
||||
}
|
||||
@@ -379,9 +379,9 @@ getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
|
||||
// to reject it here.
|
||||
if (S->getTypeAndAttributes() != TAA || S->getStubSize() != StubSize) {
|
||||
// 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");
|
||||
report_fatal_error("Global variable '" + GV->getName() +
|
||||
"' section type or attributes does not match previous"
|
||||
" section specifier");
|
||||
}
|
||||
|
||||
return S;
|
||||
|
||||
Reference in New Issue
Block a user