summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2016-09-16 07:33:15 +0000
committerEric Christopher <echristo@gmail.com>2016-09-16 07:33:15 +0000
commit4367c7fb9accecfeca579cdbae82f3c27ede6295 (patch)
tree56537e26ff5f994a95796382ea3a1707b0d9e4c2 /llvm/lib/Target/Mips
parenta808f2981eef62df08151f45f239551f013ea19f (diff)
downloadbcm5719-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/Mips')
-rw-r--r--llvm/lib/Target/Mips/MipsTargetObjectFile.cpp8
-rw-r--r--llvm/lib/Target/Mips/MipsTargetObjectFile.h1
2 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/Target/Mips/MipsTargetObjectFile.cpp b/llvm/lib/Target/Mips/MipsTargetObjectFile.cpp
index 3bd4567e379..72146e62592 100644
--- a/llvm/lib/Target/Mips/MipsTargetObjectFile.cpp
+++ b/llvm/lib/Target/Mips/MipsTargetObjectFile.cpp
@@ -113,10 +113,8 @@ IsGlobalInSmallSectionImpl(const GlobalValue *GV,
GV->getParent()->getDataLayout().getTypeAllocSize(Ty));
}
-MCSection *
-MipsTargetObjectFile::SelectSectionForGlobal(const GlobalValue *GV,
- SectionKind Kind, Mangler &Mang,
- const TargetMachine &TM) const {
+MCSection *MipsTargetObjectFile::SelectSectionForGlobal(
+ const GlobalValue *GV, SectionKind Kind, const TargetMachine &TM) const {
// TODO: Could also support "weak" symbols as well with ".gnu.linkonce.s.*"
// sections?
@@ -127,7 +125,7 @@ MipsTargetObjectFile::SelectSectionForGlobal(const GlobalValue *GV,
return SmallDataSection;
// Otherwise, we work the same as ELF.
- return TargetLoweringObjectFileELF::SelectSectionForGlobal(GV, Kind, Mang,TM);
+ return TargetLoweringObjectFileELF::SelectSectionForGlobal(GV, Kind, TM);
}
/// Return true if this constant should be placed into small data section.
diff --git a/llvm/lib/Target/Mips/MipsTargetObjectFile.h b/llvm/lib/Target/Mips/MipsTargetObjectFile.h
index 9840769aff6..e88a73aa3f8 100644
--- a/llvm/lib/Target/Mips/MipsTargetObjectFile.h
+++ b/llvm/lib/Target/Mips/MipsTargetObjectFile.h
@@ -32,7 +32,6 @@ class MipsTargetMachine;
const TargetMachine &TM) const;
MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
- Mangler &Mang,
const TargetMachine &TM) const override;
/// Return true if this constant should be placed into small data section.
OpenPOWER on IntegriCloud