summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-05 02:42:20 +0000
committerChris Lattner <sabre@nondot.org>2006-10-05 02:42:20 +0000
commit028d663ee6c490745fca5fd8a970d35de352b8f4 (patch)
treedb21b38b53690f79b3bf44495f8f99fa309a56a9 /llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
parent0dca9271487a1afe253760b8c0850ea6453c3116 (diff)
downloadbcm5719-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.cpp11
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";
- }
-}
OpenPOWER on IntegriCloud