mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 07:09:08 +00:00
Be sure to grab weak functions too, and make implicit defs comments
llvm-svn: 32308
This commit is contained in:
parent
3861ca7609
commit
8261b94b09
@ -285,6 +285,13 @@ bool AlphaAsmPrinter::doFinalization(Module &M) {
|
||||
}
|
||||
}
|
||||
|
||||
for (Module::const_iterator I = M.begin(), E = M.end(); I != E; ++I)
|
||||
if (I->hasExternalWeakLinkage()) {
|
||||
O << "\n\n";
|
||||
std::string name = Mang->getValueName(I);
|
||||
O << "\t.weak " << name << "\n";
|
||||
}
|
||||
|
||||
AsmPrinter::doFinalization(M);
|
||||
return false;
|
||||
}
|
||||
|
@ -140,11 +140,11 @@ class CmpOpFrag<dag res> : PatFrag<(ops node:$R), res>;
|
||||
|
||||
//Pseudo ops for selection
|
||||
|
||||
def IDEF_I : PseudoInstAlpha<(ops GPRC:$RA), "#idef $RA",
|
||||
def IDEF_I : PseudoInstAlpha<(ops GPRC:$RA), ";#idef $RA",
|
||||
[(set GPRC:$RA, (undef))], s_pseudo>;
|
||||
def IDEF_F32 : PseudoInstAlpha<(ops F4RC:$RA), "#idef $RA",
|
||||
def IDEF_F32 : PseudoInstAlpha<(ops F4RC:$RA), ";#idef $RA",
|
||||
[(set F4RC:$RA, (undef))], s_pseudo>;
|
||||
def IDEF_F64 : PseudoInstAlpha<(ops F8RC:$RA), "#idef $RA",
|
||||
def IDEF_F64 : PseudoInstAlpha<(ops F8RC:$RA), ";#idef $RA",
|
||||
[(set F8RC:$RA, (undef))], s_pseudo>;
|
||||
|
||||
def WTF : PseudoInstAlpha<(ops variable_ops), "#wtf", [], s_pseudo>;
|
||||
|
Loading…
Reference in New Issue
Block a user