aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-24 16:40:45 +0000
committerChris Lattner <sabre@nondot.org>2009-07-24 16:40:45 +0000
commit0680dd6a3ff1fc22571e618a881b6e1734d054dc (patch)
tree1649b451b66185da14794c27f059955b4a8afad1 /lib/Target
parent8aafa1c4b64aa863823dbfc372aa7464257cabe6 (diff)
downloadexternal_llvm-0680dd6a3ff1fc22571e618a881b6e1734d054dc.zip
external_llvm-0680dd6a3ff1fc22571e618a881b6e1734d054dc.tar.gz
external_llvm-0680dd6a3ff1fc22571e618a881b6e1734d054dc.tar.bz2
There is no need to pass the name into lib/Target/TargetAsmInfo.cpp
when we have a global with no section explicitly specified. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76971 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/TargetAsmInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp
index 5403b3d..157444a 100644
--- a/lib/Target/TargetAsmInfo.cpp
+++ b/lib/Target/TargetAsmInfo.cpp
@@ -302,7 +302,7 @@ const Section *TargetAsmInfo::SectionForGlobal(const GlobalValue *GV) const {
getSectionPrefixForUniqueGlobal(SectionKindForGlobal(GV))) {
// FIXME: Use mangler interface (PR4584).
std::string Name = Prefix+GV->getNameStr();
- unsigned Flags = SectionFlagsForGlobal(GV, Name.c_str());
+ unsigned Flags = SectionFlagsForGlobal(GV);
return getNamedSection(Name.c_str(), Flags);
}
}