mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
Unbreak C++ tests on x86 Darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53237 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7220b814ed
commit
ab8faba2fb
@ -351,8 +351,9 @@ namespace llvm {
|
||||
/// printSuffixedName - This prints a name with preceding
|
||||
/// getPrivateGlobalPrefix and the specified suffix, handling quoted names
|
||||
/// correctly.
|
||||
void printSuffixedName(const char *Name, const char* Suffix);
|
||||
void printSuffixedName(std::string &Name, const char* Suffix);
|
||||
void printSuffixedName(const char *Name, const char *Suffix,
|
||||
const char *Prefix = 0);
|
||||
void printSuffixedName(const std::string &Name, const char* Suffix);
|
||||
|
||||
private:
|
||||
void EmitLLVMUsedList(Constant *List);
|
||||
|
@ -1445,14 +1445,23 @@ void AsmPrinter::printDataDirective(const Type *type) {
|
||||
}
|
||||
}
|
||||
|
||||
void AsmPrinter::printSuffixedName(const char *Name, const char* Suffix) {
|
||||
void AsmPrinter::printSuffixedName(const char *Name, const char *Suffix,
|
||||
const char *Prefix) {
|
||||
if (Name[0]=='\"')
|
||||
O << '\"' << TAI->getPrivateGlobalPrefix() <<
|
||||
Name[1] << Suffix << '\"';
|
||||
O << '\"';
|
||||
O << TAI->getPrivateGlobalPrefix();
|
||||
if (Prefix) O << Prefix;
|
||||
if (Name[0]=='\"')
|
||||
O << '\"';
|
||||
if (Name[0]=='\"')
|
||||
O << Name[1];
|
||||
else
|
||||
O << TAI->getPrivateGlobalPrefix() << Name << Suffix;
|
||||
O << Name;
|
||||
O << Suffix;
|
||||
if (Name[0]=='\"')
|
||||
O << '\"';
|
||||
}
|
||||
|
||||
void AsmPrinter::printSuffixedName(std::string &Name, const char* Suffix) {
|
||||
void AsmPrinter::printSuffixedName(const std::string &Name, const char* Suffix) {
|
||||
printSuffixedName(Name.c_str(), Suffix);
|
||||
}
|
||||
|
@ -977,8 +977,7 @@ void X86ATTAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) {
|
||||
/// printGVStub - Print stub for a global value.
|
||||
///
|
||||
void X86ATTAsmPrinter::printGVStub(const char *GV, const char *Prefix) {
|
||||
if (Prefix) O << Prefix;
|
||||
printSuffixedName(GV, "$non_lazy_ptr");
|
||||
printSuffixedName(GV, "$non_lazy_ptr", Prefix);
|
||||
O << ":\n\t.indirect_symbol ";
|
||||
if (Prefix) O << Prefix;
|
||||
O << GV << "\n\t.long\t0\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user