mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 22:43:29 +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.
|
||||
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.
|
||||
void printOffset(int64_t Offset) const;
|
||||
|
||||
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,
|
||||
const MachineBasicBlock *MBB,
|
||||
|
@ -150,7 +150,7 @@ bool AsmPrinter::doInitialization(Module &M) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void AsmPrinter::EmitLinkage(unsigned Linkage, MCSymbol *GVSym) {
|
||||
void AsmPrinter::EmitLinkage(unsigned Linkage, MCSymbol *GVSym) const {
|
||||
switch ((GlobalValue::LinkageTypes)Linkage) {
|
||||
case GlobalValue::CommonLinkage:
|
||||
case GlobalValue::LinkOnceAnyLinkage:
|
||||
@ -206,7 +206,7 @@ void AsmPrinter::EmitGlobalVariable(const GlobalVariable *GV) {
|
||||
return;
|
||||
|
||||
MCSymbol *GVSym = GetGlobalValueSymbol(GV);
|
||||
printVisibility(GVSym, GV->getVisibility());
|
||||
EmitVisibility(GVSym, GV->getVisibility());
|
||||
|
||||
if (MAI->hasDotTypeDotSizeDirective())
|
||||
OutStreamer.EmitSymbolAttribute(GVSym, MCSA_ELF_TypeObject);
|
||||
@ -300,7 +300,7 @@ void AsmPrinter::EmitFunctionHeader() {
|
||||
const Function *F = MF->getFunction();
|
||||
|
||||
OutStreamer.SwitchSection(getObjFileLowering().SectionForGlobal(F, Mang, TM));
|
||||
printVisibility(CurrentFnSym, F->getVisibility());
|
||||
EmitVisibility(CurrentFnSym, F->getVisibility());
|
||||
|
||||
EmitLinkage(F->getLinkage(), CurrentFnSym);
|
||||
EmitAlignment(MF->getAlignment(), F);
|
||||
@ -384,7 +384,7 @@ bool AsmPrinter::doFinalization(Module &M) {
|
||||
else
|
||||
assert(I->hasLocalLinkage() && "Invalid alias linkage");
|
||||
|
||||
printVisibility(Name, I->getVisibility());
|
||||
EmitVisibility(Name, I->getVisibility());
|
||||
|
||||
// Emit the directives as assignments aka .set:
|
||||
OutStreamer.EmitAssignment(Name,
|
||||
@ -1605,8 +1605,7 @@ void AsmPrinter::EmitBasicBlockStart(const MachineBasicBlock *MBB) const {
|
||||
}
|
||||
}
|
||||
|
||||
void AsmPrinter::printVisibility(MCSymbol *Sym, unsigned Visibility) const {
|
||||
// FIXME: RENAME TO EmitVisibility.
|
||||
void AsmPrinter::EmitVisibility(MCSymbol *Sym, unsigned Visibility) const {
|
||||
MCSymbolAttr Attr = MCSA_Invalid;
|
||||
|
||||
switch (Visibility) {
|
||||
|
Loading…
Reference in New Issue
Block a user