summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/DarwinTargetAsmInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-25 23:21:55 +0000
committerChris Lattner <sabre@nondot.org>2009-07-25 23:21:55 +0000
commit0af00396a790f11d77831c9da47ec5de7c469c97 (patch)
treeda59338b80926f45aa9e41a12b37e09013421003 /llvm/lib/Target/DarwinTargetAsmInfo.cpp
parente5dc8594ea999ca576272fa44a0e5ff3754f3cb0 (diff)
downloadbcm5719-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.cpp4
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");
OpenPOWER on IntegriCloud