Add hook for constant pool section selection for darwin.
[oota-llvm.git] / lib / Target / ELFTargetAsmInfo.cpp
index 3b89c3f1e2dfa99f72c332879de47f9b6a265715..e6a40e7cec5b9dbc5aa5dac33683627fa97f8bbb 100644 (file)
@@ -99,9 +99,7 @@ ELFTargetAsmInfo::SelectSectionForMachineConst(const Type *Ty) const {
 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*