summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-07-01 22:08:01 +0000
committerBill Wendling <isanbard@gmail.com>2008-07-01 22:08:01 +0000
commitc8cdb883df252464be7e46e7da5312de2c8687f0 (patch)
tree5dce07c05a6e2c241ec545145fc4d764beefba0d /llvm/lib/CodeGen/MachineModuleInfo.cpp
parent3bfe3b0e766af7a72903fdd5faa9a95349496ff1 (diff)
downloadbcm5719-llvm-c8cdb883df252464be7e46e7da5312de2c8687f0.tar.gz
bcm5719-llvm-c8cdb883df252464be7e46e7da5312de2c8687f0.zip
- Update comments.
- Don't use GlobalVariable::LinkageTypes when unsigned works. llvm-svn: 52987
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineModuleInfo.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp
index 52737a60454..44e4ee36ecd 100644
--- a/llvm/lib/CodeGen/MachineModuleInfo.cpp
+++ b/llvm/lib/CodeGen/MachineModuleInfo.cpp
@@ -586,8 +586,10 @@ GlobalVariable *DISerializer::Serialize(DebugInfoDesc *DD) {
const StructType *Ty = getTagType(DD);
// Create the GlobalVariable early to prevent infinite recursion.
- GlobalVariable *GV = new GlobalVariable(Ty, true, DD->getLinkage(),
- NULL, DD->getDescString(), M);
+ GlobalVariable *GV =
+ new GlobalVariable(Ty, true,
+ (GlobalValue::LinkageTypes)DD->getLinkage(),
+ NULL, DD->getDescString(), M);
GV->setSection("llvm.metadata");
// Insert new GlobalVariable in DescGlobals map.
OpenPOWER on IntegriCloud