reduce indentation

llvm-svn: 76951
This commit is contained in:
Chris Lattner 2009-07-24 05:01:55 +00:00
parent 259a7b2a4d
commit 20d18ee0c4

View File

@ -78,11 +78,13 @@ ELFTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const {
SectionKind::Kind Kind = SectionKindForGlobal(GV);
if (GV->isWeakForLinker()) {
if (const char *Prefix = getSectionPrefixForUniqueGlobal(Kind)) {
// FIXME: Use mangler interface (PR4584).
std::string Name = getSectionPrefixForUniqueGlobal(Kind)+GV->getName();
std::string Name = Prefix+GV->getName();
unsigned Flags = SectionFlagsForGlobal(GV, Name.c_str());
return getNamedSection(Name.c_str(), Flags);
}
}
if (const Function *F = dyn_cast<Function>(GV)) {
switch (F->getLinkage()) {
@ -94,7 +96,8 @@ ELFTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const {
case Function::ExternalLinkage:
return TextSection;
}
} else {
}
const GlobalVariable *GVar = cast<GlobalVariable>(GV);
switch (Kind) {
default: llvm_unreachable("Unsuported section kind for global");
@ -125,7 +128,6 @@ ELFTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const {
return TLSBSSSection;
}
}
}
/// getSectionForMergableConstant - Given a mergable constant with the
/// specified size and relocation information, return a section that it