diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:16:33 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:16:33 +0000 |
commit | 1f365bbf550f711ce46ce3790504d4f67b289a44 (patch) | |
tree | 9ed64e03ce33c866a820015af26f73a64bf60e4c | |
parent | 7497762606c7b1e88c8303214675a8f3b085a530 (diff) | |
download | bcm5719-llvm-1f365bbf550f711ce46ce3790504d4f67b289a44.tar.gz bcm5719-llvm-1f365bbf550f711ce46ce3790504d4f67b289a44.zip |
Cleanup, no functionality change
llvm-svn: 56576
-rw-r--r-- | llvm/lib/Target/DarwinTargetAsmInfo.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Target/ELFTargetAsmInfo.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/DarwinTargetAsmInfo.cpp b/llvm/lib/Target/DarwinTargetAsmInfo.cpp index 6a53b6b25a5..81a33420717 100644 --- a/llvm/lib/Target/DarwinTargetAsmInfo.cpp +++ b/llvm/lib/Target/DarwinTargetAsmInfo.cpp @@ -82,7 +82,7 @@ DarwinTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const { if (isWeak) return TextCoalSection; else - return getTextSection(); + return TextSection; case SectionKind::Data: case SectionKind::ThreadData: case SectionKind::BSS: @@ -90,7 +90,7 @@ DarwinTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const { if (cast<GlobalVariable>(GV)->isConstant()) return (isWeak ? ConstDataCoalSection : ConstDataSection); else - return (isWeak ? DataCoalSection : getDataSection()); + return (isWeak ? DataCoalSection : DataSection); case SectionKind::ROData: return (isWeak ? ConstDataCoalSection : (isNonStatic ? ConstDataSection : getReadOnlySection_())); diff --git a/llvm/lib/Target/ELFTargetAsmInfo.cpp b/llvm/lib/Target/ELFTargetAsmInfo.cpp index df4e43d0aae..784d9cdbc52 100644 --- a/llvm/lib/Target/ELFTargetAsmInfo.cpp +++ b/llvm/lib/Target/ELFTargetAsmInfo.cpp @@ -47,7 +47,7 @@ ELFTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const { case Function::InternalLinkage: case Function::DLLExportLinkage: case Function::ExternalLinkage: - return getTextSection(); + return TextSection; case Function::WeakLinkage: case Function::LinkOnceLinkage: std::string Name = UniqueSectionForGlobal(GV, Kind); @@ -63,7 +63,7 @@ ELFTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const { switch (Kind) { case SectionKind::Data: case SectionKind::SmallData: - return getDataSection(); + return DataSection; case SectionKind::BSS: case SectionKind::SmallBSS: // ELF targets usually have BSS sections |