mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-24 19:44:49 +00:00
Revert r52046. It broke cbe on x86 / Mac OS X.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52071 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1d685a46bf
commit
3e3aa86b68
@ -1224,10 +1224,6 @@ std::string CWriter::GetValueName(const Value *Operand) {
|
||||
Name = "llvm_cbe_" + VarName;
|
||||
} else {
|
||||
Name = Mang->getValueName(Operand);
|
||||
|
||||
// Check, if operand has assembler identifier and handle it separately
|
||||
if (Operand->getNameStart()[0] == 1)
|
||||
Name = "llvm_cbe_asmname_" + Name;
|
||||
}
|
||||
|
||||
return Name;
|
||||
@ -1656,11 +1652,6 @@ bool CWriter::doInitialization(Module &M) {
|
||||
|
||||
if (I->hasExternalWeakLinkage())
|
||||
Out << " __EXTERNAL_WEAK__";
|
||||
|
||||
// Special handling for assembler identifiers
|
||||
if (I->getNameStart()[0] == 1)
|
||||
Out << " LLVM_ASM(\"" << I->getName().c_str()+1 << "\")";
|
||||
|
||||
Out << ";\n";
|
||||
}
|
||||
}
|
||||
@ -1689,8 +1680,7 @@ bool CWriter::doInitialization(Module &M) {
|
||||
if (I->hasHiddenVisibility())
|
||||
Out << " __HIDDEN__";
|
||||
|
||||
// Special handling for assembler identifiers
|
||||
if (I->getNameStart()[0] == 1)
|
||||
if (I->hasName() && I->getName()[0] == 1)
|
||||
Out << " LLVM_ASM(\"" << I->getName().c_str()+1 << "\")";
|
||||
|
||||
Out << ";\n";
|
||||
@ -1729,11 +1719,6 @@ bool CWriter::doInitialization(Module &M) {
|
||||
Out << " __EXTERNAL_WEAK__";
|
||||
if (I->hasHiddenVisibility())
|
||||
Out << " __HIDDEN__";
|
||||
|
||||
// Special handling for assembler identifiers
|
||||
if (I->getNameStart()[0] == 1)
|
||||
Out << " LLVM_ASM(\"" << I->getName().c_str()+1 << "\")";
|
||||
|
||||
Out << ";\n";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user