move getSectionForFunction to AsmPrinter

llvm-svn: 30736
This commit is contained in:
Chris Lattner 2006-10-05 02:42:47 +00:00
parent 028d663ee6
commit dc82241182
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,10 @@ AsmPrinter::AsmPrinter(std::ostream &o, TargetMachine &tm,
: FunctionNumber(0), O(o), TM(tm), TAI(T)
{}
std::string AsmPrinter::getSectionForFunction(const Function &F) const {
return TAI->getTextSection();
}
/// SwitchToTextSection - Switch to the specified text section of the executable
/// if we are not already in it!