mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 11:33:24 +02:00
make DecorateCygMingName a static method.
llvm-svn: 98377
This commit is contained in:
parent
19c12c8ef4
commit
5611fd3bc7
@ -59,10 +59,9 @@ MCSymbol *X86AsmPrinter::GetGlobalValueSymbol(const GlobalValue *GV) const {
|
||||
if (!Subtarget->isTargetCygMing() || !isa<Function>(GV))
|
||||
return Symb;
|
||||
|
||||
X86COFFMachineModuleInfo &COFFMMI =
|
||||
MMI->getObjFileInfo<X86COFFMachineModuleInfo>();
|
||||
return COFFMMI.DecorateCygMingName(Symb, OutContext, cast<Function>(GV),
|
||||
*TM.getTargetData());
|
||||
return X86COFFMachineModuleInfo::
|
||||
DecorateCygMingName(Symb, OutContext, cast<Function>(GV),
|
||||
*TM.getTargetData());
|
||||
}
|
||||
|
||||
/// runOnMachineFunction - Emit the function body.
|
||||
|
@ -63,10 +63,9 @@ GetSymbolFromOperand(const MachineOperand &MO) const {
|
||||
isa<Function>(MO.getGlobal())) {
|
||||
const GlobalValue *GV = MO.getGlobal();
|
||||
MCSymbol *Sym = Mang->getSymbol(GV);
|
||||
X86COFFMachineModuleInfo &COFFMMI =
|
||||
AsmPrinter.MMI->getObjFileInfo<X86COFFMachineModuleInfo>();
|
||||
Sym = COFFMMI.DecorateCygMingName(Sym, Ctx, cast<Function>(GV),
|
||||
*AsmPrinter.TM.getTargetData());
|
||||
Sym = X86COFFMachineModuleInfo::
|
||||
DecorateCygMingName(Sym, Ctx, cast<Function>(GV),
|
||||
*AsmPrinter.TM.getTargetData());
|
||||
Name.append(Sym->getName().begin(), Sym->getName().end());
|
||||
} else {
|
||||
const GlobalValue *GV = MO.getGlobal();
|
||||
|
@ -30,8 +30,8 @@ public:
|
||||
X86COFFMachineModuleInfo(const MachineModuleInfo &) {}
|
||||
virtual ~X86COFFMachineModuleInfo();
|
||||
|
||||
MCSymbol *DecorateCygMingName(MCSymbol *Name, MCContext &Ctx,
|
||||
const Function *F, const TargetData &TD);
|
||||
static MCSymbol *DecorateCygMingName(MCSymbol *Name, MCContext &Ctx,
|
||||
const Function *F, const TargetData &TD);
|
||||
|
||||
void addExternalFunction(StringRef Name) {
|
||||
CygMingStubs.insert(Name);
|
||||
|
Loading…
Reference in New Issue
Block a user