summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-07-02 00:35:47 +0000
committerBill Wendling <isanbard@gmail.com>2008-07-02 00:35:47 +0000
commit82a9321f5641b76aeb7ba9d6fad5e4b559327fb1 (patch)
tree544ba423007be29138d913494212cbb81407e1cb /llvm/lib
parent0a7fd7d56c1cbc9d54c95eb84cf9f2e16bcf03af (diff)
downloadbcm5719-llvm-82a9321f5641b76aeb7ba9d6fad5e4b559327fb1.tar.gz
bcm5719-llvm-82a9321f5641b76aeb7ba9d6fad5e4b559327fb1.zip
Sorry. I couldn't sleep at night knowing I put these ugly casts into the source tree.
llvm-svn: 53001
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/MachineDebugInfoDesc.cpp8
-rw-r--r--llvm/lib/CodeGen/MachineModuleInfo.cpp3
2 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/MachineDebugInfoDesc.cpp b/llvm/lib/CodeGen/MachineDebugInfoDesc.cpp
index 3477dd6a89b..23853862c28 100644
--- a/llvm/lib/CodeGen/MachineDebugInfoDesc.cpp
+++ b/llvm/lib/CodeGen/MachineDebugInfoDesc.cpp
@@ -92,8 +92,8 @@ DebugInfoDesc *DebugInfoDesc::DescFactory(unsigned Tag) {
}
/// getLinkage - get linkage appropriate for this type of descriptor.
-unsigned DebugInfoDesc::getLinkage() const {
- return (unsigned)GlobalValue::InternalLinkage;
+GlobalValue::LinkageTypes DebugInfoDesc::getLinkage() const {
+ return GlobalValue::InternalLinkage;
}
/// ApplyToFields - Target the vistor to the fields of the descriptor.
@@ -115,8 +115,8 @@ bool AnchorDesc::classof(const DebugInfoDesc *D) {
}
/// getLinkage - get linkage appropriate for this type of descriptor.
-unsigned AnchorDesc::getLinkage() const {
- return (unsigned)GlobalValue::LinkOnceLinkage;
+GlobalValue::LinkageTypes AnchorDesc::getLinkage() const {
+ return GlobalValue::LinkOnceLinkage;
}
/// ApplyToFields - Target the visitor to the fields of the TransUnitDesc.
diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp
index 44e4ee36ecd..473b60554b6 100644
--- a/llvm/lib/CodeGen/MachineModuleInfo.cpp
+++ b/llvm/lib/CodeGen/MachineModuleInfo.cpp
@@ -587,8 +587,7 @@ GlobalVariable *DISerializer::Serialize(DebugInfoDesc *DD) {
// Create the GlobalVariable early to prevent infinite recursion.
GlobalVariable *GV =
- new GlobalVariable(Ty, true,
- (GlobalValue::LinkageTypes)DD->getLinkage(),
+ new GlobalVariable(Ty, true, DD->getLinkage(),
NULL, DD->getDescString(), M);
GV->setSection("llvm.metadata");
OpenPOWER on IntegriCloud