diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-22 20:26:37 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-22 20:26:37 +0000 |
commit | c6425dbf0aa44a7e8d4e50eb7d677bedfc922917 (patch) | |
tree | 9315cc08787d9796ae3cb85c2e2e9f56dcf3650e | |
parent | a7f6e089f1f77bbc9bc9daf2804b847ebba705c2 (diff) | |
download | external_llvm-c6425dbf0aa44a7e8d4e50eb7d677bedfc922917.zip external_llvm-c6425dbf0aa44a7e8d4e50eb7d677bedfc922917.tar.gz external_llvm-c6425dbf0aa44a7e8d4e50eb7d677bedfc922917.tar.bz2 |
Fix indentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76778 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/TargetAsmInfo.cpp | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp index d8c331e..0f770bd 100644 --- a/lib/Target/TargetAsmInfo.cpp +++ b/lib/Target/TargetAsmInfo.cpp @@ -28,7 +28,8 @@ using namespace llvm; TargetAsmInfo::TargetAsmInfo(const TargetMachine &tm) -: TM(tm) { + : TM(tm) +{ BSSSection = "\t.bss"; BSSSection_ = 0; ReadOnlySection = 0; @@ -303,7 +304,7 @@ const Section *TargetAsmInfo::SectionForGlobal(const GlobalValue *GV) const { unsigned Flags = SectionFlagsForGlobal(GV, GV->getSection().c_str()); return getNamedSection(GV->getSection().c_str(), Flags); } - + // Use default section depending on the 'type' of global return SelectSectionForGlobal(GV); } @@ -347,35 +348,35 @@ std::string TargetAsmInfo::UniqueSectionForGlobal(const GlobalValue* GV, SectionKind::Kind Kind) const { switch (Kind) { - case SectionKind::Text: + case SectionKind::Text: return ".gnu.linkonce.t." + GV->getName(); - case SectionKind::Data: + case SectionKind::Data: return ".gnu.linkonce.d." + GV->getName(); - case SectionKind::DataRel: + case SectionKind::DataRel: return ".gnu.linkonce.d.rel" + GV->getName(); - case SectionKind::DataRelLocal: + case SectionKind::DataRelLocal: return ".gnu.linkonce.d.rel.local" + GV->getName(); - case SectionKind::DataRelRO: + case SectionKind::DataRelRO: return ".gnu.linkonce.d.rel.ro" + GV->getName(); - case SectionKind::DataRelROLocal: + case SectionKind::DataRelROLocal: return ".gnu.linkonce.d.rel.ro.local" + GV->getName(); - case SectionKind::SmallData: + case SectionKind::SmallData: return ".gnu.linkonce.s." + GV->getName(); - case SectionKind::BSS: + case SectionKind::BSS: return ".gnu.linkonce.b." + GV->getName(); - case SectionKind::SmallBSS: + case SectionKind::SmallBSS: return ".gnu.linkonce.sb." + GV->getName(); - case SectionKind::ROData: - case SectionKind::RODataMergeConst: - case SectionKind::RODataMergeStr: + case SectionKind::ROData: + case SectionKind::RODataMergeConst: + case SectionKind::RODataMergeStr: return ".gnu.linkonce.r." + GV->getName(); - case SectionKind::SmallROData: + case SectionKind::SmallROData: return ".gnu.linkonce.s2." + GV->getName(); - case SectionKind::ThreadData: + case SectionKind::ThreadData: return ".gnu.linkonce.td." + GV->getName(); - case SectionKind::ThreadBSS: + case SectionKind::ThreadBSS: return ".gnu.linkonce.tb." + GV->getName(); - default: + default: llvm_unreachable("Unknown section kind"); } return NULL; |