diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-24 18:42:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-24 18:42:53 +0000 |
commit | 73f665143992e7bfbbce08cb30fd12e3916567f7 (patch) | |
tree | c175c16a22067b0837c72319f86008b3d96c3536 /llvm/lib/Target/DarwinTargetAsmInfo.cpp | |
parent | bf9ac228f7f90c776434db4ca8be457632fd225d (diff) | |
download | bcm5719-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.cpp | 4 |
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; |