mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Unbreak C++ tests on x86 Darwin.
llvm-svn: 53237
This commit is contained in:
parent
1aebb33c1d
commit
6af015292e
@ -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…
Reference in New Issue
Block a user