summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/DarwinTargetAsmInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-24 18:42:53 +0000
committerChris Lattner <sabre@nondot.org>2009-07-24 18:42:53 +0000
commit73f665143992e7bfbbce08cb30fd12e3916567f7 (patch)
treec175c16a22067b0837c72319f86008b3d96c3536 /llvm/lib/Target/DarwinTargetAsmInfo.cpp
parentbf9ac228f7f90c776434db4ca8be457632fd225d (diff)
downloadbcm5719-llvm-73f665143992e7bfbbce08cb30fd12e3916567f7.tar.gz
bcm5719-llvm-73f665143992e7bfbbce08cb30fd12e3916567f7.zip
we already know the sectionkind when invoking SelectSectionForGlobal,
pass it in instead of recomputing it. llvm-svn: 76990
Diffstat (limited to 'llvm/lib/Target/DarwinTargetAsmInfo.cpp')
-rw-r--r--llvm/lib/Target/DarwinTargetAsmInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/DarwinTargetAsmInfo.cpp b/llvm/lib/Target/DarwinTargetAsmInfo.cpp
index c25040ca600..27714f21ea0 100644
--- a/llvm/lib/Target/DarwinTargetAsmInfo.cpp
+++ b/llvm/lib/Target/DarwinTargetAsmInfo.cpp
@@ -125,8 +125,8 @@ bool DarwinTargetAsmInfo::emitUsedDirectiveFor(const GlobalValue* GV,
}
const Section*
-DarwinTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const {
- SectionKind::Kind Kind = SectionKindForGlobal(GV);
+DarwinTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV,
+ SectionKind::Kind Kind) const {
bool isWeak = GV->isWeakForLinker();
bool isNonStatic = TM.getRelocationModel() != Reloc::Static;
OpenPOWER on IntegriCloud