mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 08:28:19 +00:00
rename printVisibility to EmitVisibility and make it private,
constify EmitLinkage. llvm-svn: 94705
This commit is contained in:
parent
7e98bbe5a3
commit
de4b09beb9
@ -354,15 +354,15 @@ namespace llvm {
|
|||||||
/// printKill - This method prints the specified kill machine instruction.
|
/// printKill - This method prints the specified kill machine instruction.
|
||||||
void printKill(const MachineInstr *MI) const;
|
void printKill(const MachineInstr *MI) const;
|
||||||
|
|
||||||
/// printVisibility - This prints visibility information about symbol, if
|
|
||||||
/// this is suported by the target.
|
|
||||||
void printVisibility(MCSymbol *Sym, unsigned Visibility) const;
|
|
||||||
|
|
||||||
/// printOffset - This is just convenient handler for printing offsets.
|
/// printOffset - This is just convenient handler for printing offsets.
|
||||||
void printOffset(int64_t Offset) const;
|
void printOffset(int64_t Offset) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void EmitLinkage(unsigned Linkage, MCSymbol *GVSym);
|
/// EmitVisibility - This emits visibility information about symbol, if
|
||||||
|
/// this is suported by the target.
|
||||||
|
void EmitVisibility(MCSymbol *Sym, unsigned Visibility) const;
|
||||||
|
|
||||||
|
void EmitLinkage(unsigned Linkage, MCSymbol *GVSym) const;
|
||||||
|
|
||||||
void EmitJumpTableEntry(const MachineJumpTableInfo *MJTI,
|
void EmitJumpTableEntry(const MachineJumpTableInfo *MJTI,
|
||||||
const MachineBasicBlock *MBB,
|
const MachineBasicBlock *MBB,
|
||||||
|
@ -150,7 +150,7 @@ bool AsmPrinter::doInitialization(Module &M) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AsmPrinter::EmitLinkage(unsigned Linkage, MCSymbol *GVSym) {
|
void AsmPrinter::EmitLinkage(unsigned Linkage, MCSymbol *GVSym) const {
|
||||||
switch ((GlobalValue::LinkageTypes)Linkage) {
|
switch ((GlobalValue::LinkageTypes)Linkage) {
|
||||||
case GlobalValue::CommonLinkage:
|
case GlobalValue::CommonLinkage:
|
||||||
case GlobalValue::LinkOnceAnyLinkage:
|
case GlobalValue::LinkOnceAnyLinkage:
|
||||||
@ -206,7 +206,7 @@ void AsmPrinter::EmitGlobalVariable(const GlobalVariable *GV) {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
MCSymbol *GVSym = GetGlobalValueSymbol(GV);
|
MCSymbol *GVSym = GetGlobalValueSymbol(GV);
|
||||||
printVisibility(GVSym, GV->getVisibility());
|
EmitVisibility(GVSym, GV->getVisibility());
|
||||||
|
|
||||||
if (MAI->hasDotTypeDotSizeDirective())
|
if (MAI->hasDotTypeDotSizeDirective())
|
||||||
OutStreamer.EmitSymbolAttribute(GVSym, MCSA_ELF_TypeObject);
|
OutStreamer.EmitSymbolAttribute(GVSym, MCSA_ELF_TypeObject);
|
||||||
@ -300,7 +300,7 @@ void AsmPrinter::EmitFunctionHeader() {
|
|||||||
const Function *F = MF->getFunction();
|
const Function *F = MF->getFunction();
|
||||||
|
|
||||||
OutStreamer.SwitchSection(getObjFileLowering().SectionForGlobal(F, Mang, TM));
|
OutStreamer.SwitchSection(getObjFileLowering().SectionForGlobal(F, Mang, TM));
|
||||||
printVisibility(CurrentFnSym, F->getVisibility());
|
EmitVisibility(CurrentFnSym, F->getVisibility());
|
||||||
|
|
||||||
EmitLinkage(F->getLinkage(), CurrentFnSym);
|
EmitLinkage(F->getLinkage(), CurrentFnSym);
|
||||||
EmitAlignment(MF->getAlignment(), F);
|
EmitAlignment(MF->getAlignment(), F);
|
||||||
@ -384,7 +384,7 @@ bool AsmPrinter::doFinalization(Module &M) {
|
|||||||
else
|
else
|
||||||
assert(I->hasLocalLinkage() && "Invalid alias linkage");
|
assert(I->hasLocalLinkage() && "Invalid alias linkage");
|
||||||
|
|
||||||
printVisibility(Name, I->getVisibility());
|
EmitVisibility(Name, I->getVisibility());
|
||||||
|
|
||||||
// Emit the directives as assignments aka .set:
|
// Emit the directives as assignments aka .set:
|
||||||
OutStreamer.EmitAssignment(Name,
|
OutStreamer.EmitAssignment(Name,
|
||||||
@ -1605,8 +1605,7 @@ void AsmPrinter::EmitBasicBlockStart(const MachineBasicBlock *MBB) const {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AsmPrinter::printVisibility(MCSymbol *Sym, unsigned Visibility) const {
|
void AsmPrinter::EmitVisibility(MCSymbol *Sym, unsigned Visibility) const {
|
||||||
// FIXME: RENAME TO EmitVisibility.
|
|
||||||
MCSymbolAttr Attr = MCSA_Invalid;
|
MCSymbolAttr Attr = MCSA_Invalid;
|
||||||
|
|
||||||
switch (Visibility) {
|
switch (Visibility) {
|
||||||
|
Loading…
Reference in New Issue
Block a user