Add hook for constant pool section selection for darwin.
llvm-svn: 54449
diff --git a/llvm/lib/Target/ELFTargetAsmInfo.cpp b/llvm/lib/Target/ELFTargetAsmInfo.cpp
index 3b89c3f..e6a40e7 100644
--- a/llvm/lib/Target/ELFTargetAsmInfo.cpp
+++ b/llvm/lib/Target/ELFTargetAsmInfo.cpp
@@ -99,9 +99,7 @@
const Section*
ELFTargetAsmInfo::MergeableConstSection(const GlobalVariable *GV) const {
Constant *C = cast<GlobalVariable>(GV)->getInitializer();
- const Type *Ty = C->getType();
-
- return MergeableConstSection(Ty);
+ return MergeableConstSection(C->getType());
}
inline const Section*