diff options
| author | Eric Christopher <echristo@gmail.com> | 2016-09-16 07:33:15 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2016-09-16 07:33:15 +0000 |
| commit | 4367c7fb9accecfeca579cdbae82f3c27ede6295 (patch) | |
| tree | 56537e26ff5f994a95796382ea3a1707b0d9e4c2 /llvm/lib/Target/XCore/XCoreTargetObjectFile.cpp | |
| parent | a808f2981eef62df08151f45f239551f013ea19f (diff) | |
| download | bcm5719-llvm-4367c7fb9accecfeca579cdbae82f3c27ede6295.tar.gz bcm5719-llvm-4367c7fb9accecfeca579cdbae82f3c27ede6295.zip | |
Move the Mangler from the AsmPrinter down to TLOF and clean up the
TLOF API accordingly.
llvm-svn: 281708
Diffstat (limited to 'llvm/lib/Target/XCore/XCoreTargetObjectFile.cpp')
| -rw-r--r-- | llvm/lib/Target/XCore/XCoreTargetObjectFile.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/llvm/lib/Target/XCore/XCoreTargetObjectFile.cpp b/llvm/lib/Target/XCore/XCoreTargetObjectFile.cpp index abe1deddc56..22dcb2e6b2e 100644 --- a/llvm/lib/Target/XCore/XCoreTargetObjectFile.cpp +++ b/llvm/lib/Target/XCore/XCoreTargetObjectFile.cpp @@ -95,10 +95,8 @@ static unsigned getXCoreSectionFlags(SectionKind K, bool IsCPRel) { return Flags; } -MCSection * -XCoreTargetObjectFile::getExplicitSectionGlobal(const GlobalValue *GV, - SectionKind Kind, Mangler &Mang, - const TargetMachine &TM) const { +MCSection *XCoreTargetObjectFile::getExplicitSectionGlobal( + const GlobalValue *GV, SectionKind Kind, const TargetMachine &TM) const { StringRef SectionName = GV->getSection(); // Infer section flags from the section name if we can. bool IsCPRel = SectionName.startswith(".cp."); @@ -108,10 +106,8 @@ XCoreTargetObjectFile::getExplicitSectionGlobal(const GlobalValue *GV, getXCoreSectionFlags(Kind, IsCPRel)); } -MCSection * -XCoreTargetObjectFile::SelectSectionForGlobal(const GlobalValue *GV, - SectionKind Kind, Mangler &Mang, - const TargetMachine &TM) const { +MCSection *XCoreTargetObjectFile::SelectSectionForGlobal( + const GlobalValue *GV, SectionKind Kind, const TargetMachine &TM) const { bool UseCPRel = GV->isLocalLinkage(GV->getLinkage()); |

