diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-07-01 22:08:01 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-07-01 22:08:01 +0000 |
commit | c8cdb883df252464be7e46e7da5312de2c8687f0 (patch) | |
tree | 5dce07c05a6e2c241ec545145fc4d764beefba0d /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
parent | 3bfe3b0e766af7a72903fdd5faa9a95349496ff1 (diff) | |
download | llvm-c8cdb883df252464be7e46e7da5312de2c8687f0.zip llvm-c8cdb883df252464be7e46e7da5312de2c8687f0.tar.gz llvm-c8cdb883df252464be7e46e7da5312de2c8687f0.tar.bz2 |
- 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.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp index 52737a6..44e4ee3 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. |