mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
move getSectionForFunction to AsmPrinter
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30736 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9b7ce7da82
commit
52f0670470
@ -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!
|
||||
|
Loading…
Reference in New Issue
Block a user