diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-25 23:21:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-25 23:21:55 +0000 |
commit | 0af00396a790f11d77831c9da47ec5de7c469c97 (patch) | |
tree | da59338b80926f45aa9e41a12b37e09013421003 /llvm/lib/Target/DarwinTargetAsmInfo.cpp | |
parent | e5dc8594ea999ca576272fa44a0e5ff3754f3cb0 (diff) | |
download | bcm5719-llvm-0af00396a790f11d77831c9da47ec5de7c469c97.tar.gz bcm5719-llvm-0af00396a790f11d77831c9da47ec5de7c469c97.zip |
make SectionKind be a first-class pod struct instead of just
an enum.
llvm-svn: 77096
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 2d750a5a82b..38cdc2e8b86 100644 --- a/llvm/lib/Target/DarwinTargetAsmInfo.cpp +++ b/llvm/lib/Target/DarwinTargetAsmInfo.cpp @@ -126,12 +126,12 @@ bool DarwinTargetAsmInfo::emitUsedDirectiveFor(const GlobalValue* GV, const Section* DarwinTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV, - SectionKind::Kind Kind) const { + SectionKind Kind) const { // FIXME: Use sectionflags:linkonce instead of isWeakForLinker() here. bool isWeak = GV->isWeakForLinker(); bool isNonStatic = TM.getRelocationModel() != Reloc::Static; - switch (Kind) { + switch (Kind.getKind()) { case SectionKind::ThreadData: case SectionKind::ThreadBSS: llvm_unreachable("Darwin doesn't support TLS"); |