diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-10-05 02:42:20 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-10-05 02:42:20 +0000 |
| commit | 028d663ee6c490745fca5fd8a970d35de352b8f4 (patch) | |
| tree | db21b38b53690f79b3bf44495f8f99fa309a56a9 /llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp | |
| parent | 0dca9271487a1afe253760b8c0850ea6453c3116 (diff) | |
| download | bcm5719-llvm-028d663ee6c490745fca5fd8a970d35de352b8f4.tar.gz bcm5719-llvm-028d663ee6c490745fca5fd8a970d35de352b8f4.zip | |
Move getSectionForFunction to AsmPrinter, change it to return a string.
llvm-svn: 30735
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp b/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp index f767a4428d6..02ba912fbf4 100644 --- a/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp +++ b/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp @@ -51,14 +51,3 @@ DarwinTargetAsmInfo::DarwinTargetAsmInfo(const PPCTargetMachine &TM) { DwarfMacInfoSection = ".section __DWARF,__debug_macinfo"; } - -const char *DarwinTargetAsmInfo::getSectionForFunction(const Function &F) const{ - switch (F.getLinkage()) { - default: assert(0 && "Unknown linkage type!"); - case Function::ExternalLinkage: - case Function::InternalLinkage: return TextSection; - case Function::WeakLinkage: - case Function::LinkOnceLinkage: - return ".section __TEXT,__textcoal_nt,coalesced,pure_instructions"; - } -} |

