aboutsummaryrefslogtreecommitdiff
path: root/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
commita28cd12b064d6af333e6c16499ad26c27d010450 (patch)
tree4beaf22be39ab558db952312a73d6a479ffb52bd /lib/CodeGen/MachineModuleInfo.cpp
parentecdc82a643067346eb9808fd896ae6a6f6b8f2cd (diff)
- Update comments.
- Don't use GlobalVariable::LinkageTypes when unsigned works. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52987 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r--lib/CodeGen/MachineModuleInfo.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineModuleInfo.cpp b/lib/CodeGen/MachineModuleInfo.cpp
index 52737a6045..44e4ee36ec 100644
--- a/lib/CodeGen/MachineModuleInfo.cpp
+++ b/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.