aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-09-24 22:17:27 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-09-24 22:17:27 +0000
commitdbab2d2272a3da4d2cd6153d079a0ce6e34e94af (patch)
treec1fbe1f203fb9acf85911b2c37ac6ba11de6d5ca
parent36133dd324a0583979cb9e219306726428270096 (diff)
downloadexternal_llvm-dbab2d2272a3da4d2cd6153d079a0ce6e34e94af.zip
external_llvm-dbab2d2272a3da4d2cd6153d079a0ce6e34e94af.tar.gz
external_llvm-dbab2d2272a3da4d2cd6153d079a0ce6e34e94af.tar.bz2
Cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56578 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/DarwinTargetAsmInfo.cpp2
-rw-r--r--lib/Target/ELFTargetAsmInfo.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/DarwinTargetAsmInfo.cpp b/lib/Target/DarwinTargetAsmInfo.cpp
index 81a3342..0ae304e 100644
--- a/lib/Target/DarwinTargetAsmInfo.cpp
+++ b/lib/Target/DarwinTargetAsmInfo.cpp
@@ -128,7 +128,7 @@ DarwinTargetAsmInfo::MergeableStringSection(const GlobalVariable *GV) const {
const Section*
DarwinTargetAsmInfo::MergeableConstSection(const GlobalVariable *GV) const {
- Constant *C = cast<GlobalVariable>(GV)->getInitializer();
+ Constant *C = GV->getInitializer();
return MergeableConstSection(C->getType());
}
diff --git a/lib/Target/ELFTargetAsmInfo.cpp b/lib/Target/ELFTargetAsmInfo.cpp
index b9e9812..7c9e454 100644
--- a/lib/Target/ELFTargetAsmInfo.cpp
+++ b/lib/Target/ELFTargetAsmInfo.cpp
@@ -96,7 +96,7 @@ ELFTargetAsmInfo::SelectSectionForMachineConst(const Type *Ty) const {
const Section*
ELFTargetAsmInfo::MergeableConstSection(const GlobalVariable *GV) const {
- Constant *C = cast<GlobalVariable>(GV)->getInitializer();
+ Constant *C = GV->getInitializer();
return MergeableConstSection(C->getType());
}