forked from OSchip/llvm-project
Private linkage support for PPC / Darwin.
llvm-svn: 62955
This commit is contained in:
parent
abda665f5f
commit
1c7c019229
|
@ -776,6 +776,7 @@ bool PPCDarwinAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
|||
|
||||
switch (F->getLinkage()) {
|
||||
default: assert(0 && "Unknown linkage type!");
|
||||
case Function::PrivateLinkage:
|
||||
case Function::InternalLinkage: // Symbols default to internal.
|
||||
break;
|
||||
case Function::ExternalLinkage:
|
||||
|
@ -959,6 +960,7 @@ void PPCDarwinAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) {
|
|||
O << "\t.globl " << name << '\n';
|
||||
// FALL THROUGH
|
||||
case GlobalValue::InternalLinkage:
|
||||
case GlobalValue::PrivateLinkage:
|
||||
break;
|
||||
default:
|
||||
cerr << "Unknown linkage type!";
|
||||
|
|
|
@ -5,6 +5,11 @@
|
|||
; RUN: grep bl.*\.Lfoo %t
|
||||
; RUN: grep .Lbaz: %t
|
||||
; RUN: grep lis.*\.Lbaz %t
|
||||
; RUN: llvm-as < %s | llc -mtriple=powerpc-apple-darwin > %t
|
||||
; RUN: grep L_foo: %t
|
||||
; RUN: grep bl.*\L_foo %t
|
||||
; RUN: grep L_baz: %t
|
||||
; RUN: grep lis.*\L_baz %t
|
||||
|
||||
declare void @foo()
|
||||
|
||||
|
|
Loading…
Reference in New Issue